harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r393729 - /incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java
Date Thu, 13 Apr 2006 06:20:39 GMT
Author: smishura
Date: Wed Apr 12 23:20:36 2006
New Revision: 393729

URL: http://svn.apache.org/viewcvs?rev=393729&view=rev
Log:
Utilize JUnit's exception handling

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java?rev=393729&r1=393728&r2=393729&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/PatternTest.java
Wed Apr 12 23:20:36 2006
@@ -176,8 +176,6 @@
                 fail("PatternSyntaxException was expected, but compilation succeeds");
             } catch (PatternSyntaxException pse) {
                 continue;
-            } catch (Throwable e) {
-                fail("PatternSyntaxException was expected, but other one was thrown: " +
e);
             }
         }
 	}
@@ -347,9 +345,6 @@
             Pattern.compile("+++++");
             fail("PatternSyntaxException expected");
         } catch (PatternSyntaxException pse) {
-            System.out.println(pse);
-        } catch (Throwable e) {
-            fail("PatternSyntaxException expected other one was thrown: " + e);
         }
     }
     
@@ -358,8 +353,6 @@
             Pattern pat = Pattern.compile("\\d+*");
             fail("PatternSyntaxException expected");
         } catch (PatternSyntaxException pse) {
-        } catch (Throwable e) {
-            fail("PatternSyntaxException expected other one was thrown: " + e);
         }
     }
     
@@ -548,10 +541,6 @@
             Pattern.compile("\\y");
             fail("PatternSyntaxException expected");
         } catch (PatternSyntaxException pse) {
-            
-        } catch (Exception t) {
-            fail("PatternSyntaxException was expected" +
-                    "but other one was thrown: " + t);
         }
     }
     



Mime
View raw message