portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asfgr...@apache.org
Subject portals-pluto git commit: PLUTO-744: Improve exception handling with an AssertionError
Date Mon, 22 Oct 2018 19:09:11 GMT
Repository: portals-pluto
Updated Branches:
  refs/heads/master 3e9bd7807 -> d16b3073a


PLUTO-744: Improve exception handling with an AssertionError


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/d16b3073
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/d16b3073
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/d16b3073

Branch: refs/heads/master
Commit: d16b3073a5201c87fdf6bd042904c5cc48e96ab0
Parents: 3e9bd78
Author: vsingleton <vsingleton@gmail.com>
Authored: Mon Oct 22 09:20:50 2018 -0400
Committer: Neil Griffin <neil.griffin.scm@gmail.com>
Committed: Mon Oct 22 15:08:43 2018 -0400

----------------------------------------------------------------------
 .../java/javax/portlet/tck/driver/TCKLiferayTestDriver.java    | 4 ++--
 .../java/javax/portlet/tck/driver/TCKSimpleTestDriver.java     | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d16b3073/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKLiferayTestDriver.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKLiferayTestDriver.java
b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKLiferayTestDriver.java
index 6e91eff..01b72e5 100644
--- a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKLiferayTestDriver.java
+++ b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKLiferayTestDriver.java
@@ -202,8 +202,8 @@ public class TCKLiferayTestDriver extends TCKSimpleTestDriver {
             System.out.println(line);
          }
 
-         assertTrue("Test case " + tcName + " failed. " +
-               " Setup link could not be accessed. \nException: " + e.toString(), false);
+         throw new AssertionError("Test case " + tcName + " failed. " +
+                 "\nException: ", e);
       } finally {
 
          wasExclusive = exclusive;

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/d16b3073/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
----------------------------------------------------------------------
diff --git a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
index c3c11a6..bfddae6 100644
--- a/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
+++ b/portlet-tck_3.0/driver/src/main/java/javax/portlet/tck/driver/TCKSimpleTestDriver.java
@@ -366,9 +366,9 @@ public class TCKSimpleTestDriver {
          for (String line : debugLines) {
             System.out.println(line);
          }
-         
-         assertTrue("Test case " + tcName + " failed. " +  
-               " Setup link could not be accessed. \nException: " + e.toString(), false);
+
+         throw new AssertionError("Test case " + tcName + " failed. " +
+            "\nException: ", e);
       }
    }
 


Mime
View raw message