commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1492392 - /commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java
Date Wed, 12 Jun 2013 19:28:38 GMT
Author: britter
Date: Wed Jun 12 19:28:38 2013
New Revision: 1492392

URL: http://svn.apache.org/r1492392
Log:
Invert assertion

Modified:
    commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java

Modified: commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java?rev=1492392&r1=1492391&r2=1492392&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java
(original)
+++ commons/proper/chain/trunk/core/src/test/java/org/apache/commons/chain2/impl/ContextBaseTestCase.java
Wed Jun 12 19:28:38 2013
@@ -17,6 +17,7 @@
 package org.apache.commons.chain2.impl;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
@@ -141,14 +142,14 @@ public class ContextBaseTestCase {
     @Test
     public void testContains() {
 
-        assertTrue(!context.containsKey("bop"));
-        assertTrue(!context.containsValue("bop value"));
+        assertFalse(context.containsKey("bop"));
+        assertFalse(context.containsValue("bop value"));
         context.put("bop", "bop value");
         assertTrue(context.containsKey("bop"));
         assertTrue(context.containsValue("bop value"));
         context.remove("bop");
-        assertTrue(!context.containsKey("bop"));
-        assertTrue(!context.containsValue("bop value"));
+        assertFalse(context.containsKey("bop"));
+        assertFalse(context.containsValue("bop value"));
 
     }
 



Mime
View raw message