harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r641703 - /harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java
Date Thu, 27 Mar 2008 04:23:02 GMT
Author: smishura
Date: Wed Mar 26 21:22:55 2008
New Revision: 641703

URL: http://svn.apache.org/viewvc?rev=641703&view=rev
Log:
Fix JUnit style

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java?rev=641703&r1=641702&r2=641703&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/KeyStoreBuilderParametersTest.java
Wed Mar 26 21:22:55 2008
@@ -26,11 +26,9 @@
 
 import junit.framework.TestCase;
 
-
 /**
  * Tests for <code>KeyStoreBuilderParameters</code> class constructors and
  * methods.
- *  
  */
 public class KeyStoreBuilderParametersTest extends TestCase {
 
@@ -71,12 +69,8 @@
             fail("The list is modifiable");
         } catch (UnsupportedOperationException e) {
         }
-        if (result.size() != 1) {
-            fail("incorrect size");
-        }
-        if (!result.contains(builder)) {
-            fail("incorrect list");
-        }
+        assertEquals("incorrect size", 1, result.size());
+        assertTrue("incorrect list", result.contains(builder));
         
         ksbuilders = new ArrayList();
         ksbuilders.add(builder);
@@ -88,12 +82,8 @@
             fail("The list is modifiable");
         } catch (UnsupportedOperationException e) {
         }
-        if (result.size() != 2) {
-            fail("incorrect size");
-        }
-        if (!result.containsAll(ksbuilders)) {
-            fail("incorrect list");
-        }
+        assertEquals("incorrect size", 2, result.size());
+        assertTrue("incorrect list", result.containsAll(ksbuilders));
     }
 }
 



Mime
View raw message