junit.framework.Assertorg.junit.Assert.assertEquals-s



Project neo4j/neo4j in file ...eo4j.cluster.client.ClustersXMLSerializerTest.java (2013-05-17)
@@ -21,10 +21,11 @@ package org.neo4j.cluster.client;
 
 import javax.xml.parsers.DocumentBuilderFactory;
 
-import junit.framework.Assert;
 import org.junit.Test;
 import org.w3c.dom.Document;
 
+import static org.junit.Assert.assertEquals;
+
 public class ClustersXMLSerializerTest
 {
     @Test
@@ -44,6 +45,6 @@ public class ClustersXMLSerializerTest
 
         Clusters clusters2 = serializer.read( doc );
 
-        Assert.assertEquals( clusters, clusters2 );
+        assertEquals( clusters, clusters2 );
     }
 }
Project SpringSource/spring-framework in file ...pringframework.expression.spel.MapAccessTests.java (2012-12-31)
@@ -16,10 +16,10 @@
 
 package org.springframework.expression.spel;
 
-import java.util.Map;
-import java.util.HashMap;
+import static org.junit.Assert.assertEquals;
 
-import junit.framework.Assert;
+import java.util.HashMap;
+import java.util.Map;
 
 import org.junit.Test;
 import org.springframework.expression.AccessException;
@@ -56,7 +56,7 @@ public class MapAccessTests extends ExpressionTestCase {
 
 		Expression expr = parser.parseExpression("testMap.monday");
 		Object value = expr.getValue(ctx, String.class);
-		Assert.assertEquals("montag", value);
+		assertEquals("montag", value);
 	}
 
 	@Test
@@ -67,7 +67,7 @@ public class MapAccessTests extends ExpressionTestCase {
 
 		Expression expr = parser.parseExpression("testMap[#day]");
 		Object value = expr.getValue(ctx, String.class);
-		Assert.assertEquals("samstag", value);
+		assertEquals("samstag", value);
 	}
 
 	@Test
Project jersey/jersey in file ...er.filter.ContainerResponseFilterOrderingTest.java (2014-02-07)
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012-2014 Oracle and/or its affiliates. All rights reserved.
  *
  * The contents of this file are subject to the terms of either the GNU
  * General Public License Version 2 only ("GPL") or the Common Development
@@ -58,11 +58,10 @@ import org.glassfish.jersey.server.RequestContextBuilder;
 import org.glassfish.jersey.server.ResourceConfig;
 
 import org.junit.Test;
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
-import junit.framework.Assert;
-
 /**
  * @author Pavel Bucek (pavel.bucek at oracle.com)
  */
@@ -71,7 +70,7 @@ public class ContainerResponseFilterOrderingTest {
     public void testResponseFilter() throws ExecutionException, InterruptedException {
         ApplicationHandler handler = new ApplicationHandler(new ResourceConfig(Resource.class, ResponseFilter1.class, ResponseFilter2.class, ResponseFilter3.class));
         ContainerResponse res = handler.apply(RequestContextBuilder.from("", "/resource/", "GET").build()).get();
-        Assert.assertEquals(200, res.getStatus());
+        assertEquals(200, res.getStatus());
     }
 
     @Provider
Project neo4j/neo4j in file ...rc.test.java.org.neo4j.ha.MultipleClusterTest.java (2013-05-17)
@@ -19,13 +19,11 @@
  */
 package org.neo4j.ha;
 
-import static org.neo4j.test.ha.ClusterManager.fromXml;
-
 import java.io.File;
 
-import junit.framework.Assert;
 import org.junit.Rule;
 import org.junit.Test;
+
 import org.neo4j.graphdb.GraphDatabaseService;
 import org.neo4j.graphdb.Node;
 import org.neo4j.graphdb.Transaction;
@@ -37,6 +35,9 @@ import org.neo4j.test.TargetDirectory;
 import org.neo4j.test.ha.ClusterManager;
 import org.neo4j.test.ha.ClusterManager.ManagedCluster;
 
+import static org.junit.Assert.assertEquals;
+import static org.neo4j.test.ha.ClusterManager.fromXml;
+
 /**
  * Verify that we can run multiple clusters simultaneously
  */
@@ -89,14 +90,14 @@ public class MultipleClusterTest
             for ( HighlyAvailableGraphDatabase highlyAvailableGraphDatabase : cluster.getAllMembers() )
             {
                 highlyAvailableGraphDatabase.getDependencyResolver().resolveDependency( UpdatePuller.class ).pullUpdates();
-                Assert.assertEquals( "neo4j.ha", highlyAvailableGraphDatabase.getNodeById( cluster1NodeId ).getProperty(
+                assertEquals( "neo4j.ha", highlyAvailableGraphDatabase.getNodeById( cluster1NodeId ).getProperty(
                         "cluster" ) );
             }
 
             for ( HighlyAvailableGraphDatabase highlyAvailableGraphDatabase : cluster2.getAllMembers() )
             {
                 highlyAvailableGraphDatabase.getDependencyResolver().resolveDependency( UpdatePuller.class ).pullUpdates();
-                Assert.assertEquals( "neo4j.ha2", highlyAvailableGraphDatabase.getNodeById( cluster2NodeId ).getProperty(
+                assertEquals( "neo4j.ha2", highlyAvailableGraphDatabase.getNodeById( cluster2NodeId ).getProperty(
                         "cluster" ) );
             }
         }
Project spring-projects/spring-framework in file ...pringframework.expression.spel.MapAccessTests.java (2012-12-31)
@@ -16,10 +16,10 @@
 
 package org.springframework.expression.spel;
 
-import java.util.Map;
-import java.util.HashMap;
+import static org.junit.Assert.assertEquals;
 
-import junit.framework.Assert;
+import java.util.HashMap;
+import java.util.Map;
 
 import org.junit.Test;
 import org.springframework.expression.AccessException;
@@ -56,7 +56,7 @@ public class MapAccessTests extends ExpressionTestCase {
 
 		Expression expr = parser.parseExpression("testMap.monday");
 		Object value = expr.getValue(ctx, String.class);
-		Assert.assertEquals("montag", value);
+		assertEquals("montag", value);
 	}
 
 	@Test
@@ -67,7 +67,7 @@ public class MapAccessTests extends ExpressionTestCase {
 
 		Expression expr = parser.parseExpression("testMap[#day]");
 		Object value = expr.getValue(ctx, String.class);
-		Assert.assertEquals("samstag", value);
+		assertEquals("samstag", value);
 	}
 
 	@Test