Skip to content

Commit d875160

Browse files
committed
refactored UniversalTestSuite
1 parent 13dcb43 commit d875160

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

build/properties/approvaltests.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ home=C:/Users/Llewellyn/Documents/GitHub/ApprovalTests.Java
22
src=${home}/java
33
build_home=C:/temp/builds
44
build=${build_home}/build
5-
targetJavaClass=org/approvaltests/**,com/spun/util/persistence/*,com/spun/util/Colors*, org/lambda/**,org/jrack/**
5+
targetJavaClass=org/approvaltests/**,com/spun/util/persistence/*,com/spun/util/Colors*, org/lambda/**,org/jrack/**,com/spun/util/UniversalTestSuite*
66
jars=${src}/jars
77
jar=${build}/ApprovalTests.jar
88
zip=${build}/ApprovalTests.013.zip

java/com/spun/util/tests/UniversalTestSuite.java renamed to java/com/spun/util/UniversalTestSuite.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
package com.spun.util.tests;
1+
package com.spun.util;
22

33
import java.lang.reflect.InvocationTargetException;
44

55
import junit.framework.Test;
66
import junit.framework.TestCase;
77
import junit.framework.TestSuite;
88

9-
import com.spun.util.ObjectUtils;
109
import com.spun.util.introspection.ClassGetter;
1110

1211
public class UniversalTestSuite

java/com/spun/util/tests/UtilsTestSuite.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.spun.util.tests;
22

3+
import com.spun.util.UniversalTestSuite;
4+
35
import junit.framework.Test;
46
import junit.framework.TestSuite;
57

java/org/approvaltests/reporters/MultipleExceptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void rethrowExceptions(ArrayList<Throwable> exceptions) throws Exc
2020
{
2121
return;
2222
}
23-
else if (exceptions.size() == 0)
23+
else if (exceptions.size() == 1)
2424
{
2525
Throwable t = exceptions.get(0);
2626
if (t instanceof Exception) { throw ((Exception) t); }

java/org/approvaltests/tests/TestApprovals.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import junit.framework.Test;
44
import junit.framework.TestSuite;
55

6-
import com.spun.util.tests.UniversalTestSuite;
6+
import com.spun.util.UniversalTestSuite;
77

88
public class TestApprovals extends TestSuite
99
{

0 commit comments

Comments
 (0)