junit.framework.TestCase



Project SpringSource/spring-framework in file ...gframework.web.servlet.view.RedirectViewTests.java (2010-02-10)
@@ -21,21 +21,18 @@ import java.util.HashMap;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
-
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
 import org.easymock.MockControl;
-import static org.easymock.EasyMock.*;
-import org.junit.Test;
 import static org.junit.Assert.*;
+import org.junit.Test;
 
 import org.springframework.beans.TestBean;
+import org.springframework.http.HttpStatus;
 import org.springframework.mock.web.MockHttpServletRequest;
 import org.springframework.mock.web.MockHttpServletResponse;
-import org.springframework.http.HttpStatus;
 import org.springframework.web.servlet.View;
 
 /**
Project apache/lucene-solr in file ...rc.test.org.apache.solr.search.TestRangeQuery.java (2010-12-26)
@@ -24,12 +24,8 @@ import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import static org.junit.Assert.*;
-
 import java.util.*;
 
-import junit.framework.TestCase;
-
 public class TestRangeQuery extends SolrTestCaseJ4 {
 
   @BeforeClass
Project spring-projects/spring-framework in file ...gframework.web.servlet.view.RedirectViewTests.java (2010-02-10)
@@ -21,21 +21,18 @@ import java.util.HashMap;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
-
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
 import org.easymock.MockControl;
-import static org.easymock.EasyMock.*;
-import org.junit.Test;
 import static org.junit.Assert.*;
+import org.junit.Test;
 
 import org.springframework.beans.TestBean;
+import org.springframework.http.HttpStatus;
 import org.springframework.mock.web.MockHttpServletRequest;
 import org.springframework.mock.web.MockHttpServletResponse;
-import org.springframework.http.HttpStatus;
 import org.springframework.web.servlet.View;
 
 /**
Project tinkerpop/blueprints in file ...pop.blueprints.pgm.impls.neo4j.Neo4jGraphTest.java (2010-09-22)
@@ -3,7 +3,6 @@ package com.tinkerpop.blueprints.pgm.impls.neo4j;
 import com.tinkerpop.blueprints.BaseTest;
 import com.tinkerpop.blueprints.pgm.*;
 import com.tinkerpop.blueprints.pgm.parser.GraphMLReaderTestSuite;
-import junit.framework.TestCase;
 
 import java.io.File;
 import java.lang.reflect.Method;
@@ -59,6 +58,7 @@ public class Neo4jGraphTest extends BaseTest {
             String directory = System.getProperty("neo4jDirectory");
             if (directory == null)
                 directory = "/tmp/blueprints_test";
+            deleteDirectory(new File(directory));
             for (Method method : suite.getClass().getDeclaredMethods()) {
                 if (method.getName().startsWith("test")) {
                     Graph graph = new Neo4jGraph(directory);
Project Activiti/Activiti in file ...org.activiti.explorer.util.time.HumanTimeTest.java (2012-03-30)
@@ -18,7 +18,6 @@ import java.util.Date;
 import java.util.ResourceBundle;
 
 import junit.framework.Assert;
-import junit.framework.TestCase;
 
 import org.activiti.explorer.I18nManager;
 
@@ -27,8 +26,8 @@ import org.activiti.explorer.I18nManager;
 /**
  * @author Frederik Heremans
  */
-public class HumanTimeTest extends TestCase {
-  
+public class HumanTimeTest {
+    
   public void IGNORED_testHumanTime() {
     // Set up the i18nManager
     I18nManager i18nManager = new DummyI18nManager();