abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckopp...@apache.org
Subject svn commit: r944810 - /abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java
Date Sun, 16 May 2010 12:00:16 GMT
Author: ckoppelt
Date: Sun May 16 12:00:16 2010
New Revision: 944810

URL: http://svn.apache.org/viewvc?rev=944810&view=rev
Log:
removed unnecessary try/catch from Unit Test

Modified:
    abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java

Modified: abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java?rev=944810&r1=944809&r2=944810&view=diff
==============================================================================
--- abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java (original)
+++ abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/CoreTest.java Sun May
16 12:00:16 2010
@@ -31,29 +31,17 @@ import org.junit.Test;
 
 public class CoreTest {
   
-  @Test
-  public void testUriNormalization() {
-    try {
-      assertEquals("http://www.example.org/Bar/%3F/foo/",
-        IRI.normalizeString(
-          "HTTP://www.EXAMPLE.org:80/foo/../Bar/%3f/./foo/.") 
-        );
-      assertEquals("https://www.example.org/Bar/%3F/foo/",
-          IRI.normalizeString(
-          "HTTPs://www.EXAMPLE.org:443/foo/../Bar/%3f/./foo/.") 
-        );
-      assertEquals("http://www.example.org:81/Bar/%3F/foo/",
-        IRI.normalizeString(
-          "HTTP://www.EXAMPLE.org:81/foo/../Bar/%3f/./foo/.")
-        );
-      assertEquals("https://www.example.org:444/Bar/%3F/foo/",
-        IRI.normalizeString(
-          "HTTPs://www.EXAMPLE.org:444/foo/../Bar/%3f/./foo/.") 
-        );
-    } catch (Exception e) {
-      e.printStackTrace();
+    @Test
+    public void testUriNormalization() {
+        assertEquals("http://www.example.org/Bar/%3F/foo/",
+                     IRI.normalizeString("HTTP://www.EXAMPLE.org:80/foo/../Bar/%3f/./foo/."));
+        assertEquals("https://www.example.org/Bar/%3F/foo/",
+                     IRI.normalizeString("HTTPs://www.EXAMPLE.org:443/foo/../Bar/%3f/./foo/."));
+        assertEquals("http://www.example.org:81/Bar/%3F/foo/",
+                     IRI.normalizeString("HTTP://www.EXAMPLE.org:81/foo/../Bar/%3f/./foo/."));
+        assertEquals("https://www.example.org:444/Bar/%3F/foo/",
+                     IRI.normalizeString("HTTPs://www.EXAMPLE.org:444/foo/../Bar/%3f/./foo/."));
     }
-  }
   
   
   @Test



Mime
View raw message