]> source.dussan.org Git - poi.git/commitdiff
junit4 fix
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 29 Aug 2015 14:47:16 +0000 (14:47 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 29 Aug 2015 14:47:16 +0000 (14:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700043 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/util/AllSSUtilTests.java

index 7ecf90d7b573e86622e10b75c1d9b221eca4eb45..5e64f75da59aff0f37df8450801aae71107c12e4 100644 (file)
 
 package org.apache.poi.ss.util;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
 /**
  * Test suite for <tt>org.apache.poi.ss.util</tt>
  *
  * @author Josh Micich
  */
-public final class AllSSUtilTests {
-       public static Test suite() {
-               TestSuite result = new TestSuite(AllSSUtilTests.class.getName());
-               result.addTestSuite(TestCellRangeAddress.class);
-               result.addTestSuite(TestCellReference.class);
-               result.addTestSuite(TestExpandedDouble.class);
-               result.addTestSuite(TestNumberComparer.class);
-               result.addTestSuite(TestNumberToTextConverter.class);
-               result.addTestSuite(TestRegion.class);
-               return result;
-       }
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TestCellRangeAddress.class,
+    TestCellReference.class,
+    TestExpandedDouble.class,
+    TestNumberComparer.class,
+    TestNumberToTextConverter.class,
+    TestRegion.class
+})
+public class AllSSUtilTests {
 }