Moved tests over from testsuite to core

master
Arjen Poutsma 16 years ago
parent e2a17f5458
commit da8b1c73ab
  1. 1
      org.springframework.core/ivy.xml
  2. 0
      org.springframework.core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java
  3. 0
      org.springframework.core/src/test/java/org/springframework/core/CollectionFactoryTests.java
  4. 0
      org.springframework.core/src/test/java/org/springframework/core/ConstantsTests.java
  5. 5
      org.springframework.core/src/test/java/org/springframework/core/NestedExceptionTests.java
  6. 0
      org.springframework.core/src/test/java/org/springframework/core/OrderComparatorTests.java
  7. 0
      org.springframework.core/src/test/java/org/springframework/core/enums/LabeledEnumTests.java
  8. 0
      org.springframework.core/src/test/java/org/springframework/core/enums/StandAloneStaticLabeledEnum.java
  9. 0
      org.springframework.core/src/test/java/org/springframework/core/style/ToStringCreatorTests.java
  10. 0
      org.springframework.core/src/test/java/org/springframework/core/task/SimpleAsyncTaskExecutorTests.java
  11. 0
      org.springframework.core/src/test/java/org/springframework/util/CachingMapDecoratorTests.java
  12. 0
      org.springframework.core/src/test/java/org/springframework/util/CollectionUtilsTests.java
  13. 0
      org.springframework.core/src/test/java/org/springframework/util/FileCopyUtilsTests.java
  14. 0
      org.springframework.core/src/test/java/org/springframework/util/FileSystemUtilsTests.java
  15. 4
      org.springframework.core/src/test/java/org/springframework/util/Log4jConfigurerTests.java
  16. 0
      org.springframework.core/src/test/java/org/springframework/util/MethodInvokerTests.java
  17. 0
      org.springframework.core/src/test/java/org/springframework/util/MockLog4jAppender.java
  18. 0
      org.springframework.core/src/test/java/org/springframework/util/NumberUtilsTests.java
  19. 4
      org.springframework.core/src/test/java/org/springframework/util/ObjectUtilsTests.java
  20. 0
      org.springframework.core/src/test/java/org/springframework/util/PathMatcherTests.java
  21. 0
      org.springframework.core/src/test/java/org/springframework/util/PatternMatchUtilsTests.java
  22. 0
      org.springframework.core/src/test/java/org/springframework/util/PropertiesPersisterTests.java
  23. 0
      org.springframework.core/src/test/java/org/springframework/util/ResourceUtilsTests.java
  24. 0
      org.springframework.core/src/test/java/org/springframework/util/StopWatchTests.java
  25. 0
      org.springframework.core/src/test/java/org/springframework/util/StringUtilsTests.java
  26. 0
      org.springframework.core/src/test/resources/org/springframework/util/testlog4j.properties

@ -30,6 +30,7 @@
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm" rev="2.2.3" conf="optional->compile" />
<dependency org="org.objectweb.asm" name="com.springsource.org.objectweb.asm.commons" rev="2.2.3" conf="optional->compile" />
<!-- test dependencies -->
<dependency org="javax.servlet" name="com.springsource.javax.servlet" rev="2.4.0" conf="test->compile"/>
<dependency org="org.junit" name="com.springsource.org.junit" rev="4.4.0" conf="test->runtime" />
</dependencies>

@ -22,6 +22,7 @@ import java.io.PrintWriter;
import javax.servlet.ServletException;
import junit.framework.TestCase;
import junit.framework.Assert;
/**
* @author Rod Johnson
@ -51,7 +52,7 @@ public class NestedExceptionTests extends TestCase {
ServletException rootCause = new ServletException(rootCauseMesg);
// Making a class abstract doesn't _really_ prevent instantiation :-)
NestedRuntimeException nex = new NestedRuntimeException(myMessage, rootCause) {};
assertEquals(nex.getCause(), rootCause);
Assert.assertEquals(nex.getCause(), rootCause);
assertTrue(nex.getMessage().indexOf(myMessage) != -1);
assertTrue(nex.getMessage().indexOf(rootCauseMesg) != -1);
@ -87,7 +88,7 @@ public class NestedExceptionTests extends TestCase {
ServletException rootCause = new ServletException(rootCauseMesg);
// Making a class abstract doesn't _really_ prevent instantiation :-)
NestedCheckedException nex = new NestedCheckedException(myMessage, rootCause) {};
assertEquals(nex.getCause(), rootCause);
Assert.assertEquals(nex.getCause(), rootCause);
assertTrue(nex.getMessage().indexOf(myMessage) != -1);
assertTrue(nex.getMessage().indexOf(rootCauseMesg) != -1);

@ -34,7 +34,7 @@ public class Log4jConfigurerTests extends TestCase {
}
public void testInitLoggingWithRelativeFilePath() throws FileNotFoundException {
doTestInitLogging("test/org/springframework/util/testlog4j.properties", false);
doTestInitLogging("src/test/resources/org/springframework/util/testlog4j.properties", false);
}
public void testInitLoggingWithAbsoluteFilePath() throws FileNotFoundException {
@ -47,7 +47,7 @@ public class Log4jConfigurerTests extends TestCase {
}
public void testInitLoggingWithRelativeFilePathAndRefreshInterval() throws FileNotFoundException {
doTestInitLogging("test/org/springframework/util/testlog4j.properties", true);
doTestInitLogging("src/test/resources/org/springframework/util/testlog4j.properties", true);
}
/* only works on Windows

@ -22,7 +22,7 @@ import javax.servlet.ServletException;
import junit.framework.TestCase;
import org.springframework.beans.FatalBeanException;
import org.springframework.core.task.TaskRejectedException;
/**
* @author Rod Johnson
@ -36,7 +36,7 @@ public final class ObjectUtilsTests extends TestCase {
assertTrue(ObjectUtils.isCheckedException(new ServletException()));
assertFalse(ObjectUtils.isCheckedException(new RuntimeException()));
assertFalse(ObjectUtils.isCheckedException(new FatalBeanException("")));
assertFalse(ObjectUtils.isCheckedException(new TaskRejectedException("")));
// Any Throwable other than RuntimeException and Error
// has to be considered checked according to the JLS.
Loading…
Cancel
Save