]> source.dussan.org Git - poi.git/commitdiff
junit4 fix
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 26 Apr 2014 23:37:40 +0000 (23:37 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 26 Apr 2014 23:37:40 +0000 (23:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590327 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hpsf/basic/AllPOIHPSFBasicTests.java

index f71193644c6ecc24bf1cec219d1cbb7a03dacbee..b573c28d905cba420ed9c76197a9dd68c5d3d0f4 100644 (file)
 
 package org.apache.poi.hpsf.basic;
 
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
 /**
  * Test suite for org.apache.poi.hpsf.basic
  * 
  * @author Josh Micich
  */
-public final class AllPOIHPSFBasicTests {
-    public static Test suite() {
-        TestSuite result = new TestSuite("Tests for org.apache.poi.hpsf.basic");
-        result.addTestSuite(TestBasic.class);
-        result.addTestSuite(TestClassID.class);
-        result.addTestSuite(TestEmptyProperties.class);
-        result.addTestSuite(TestHPSFBugs.class);
-        result.addTestSuite(TestMetaDataIPI.class);
-        result.addTestSuite(TestUnicode.class);
-        result.addTestSuite(TestWrite.class);
-        result.addTestSuite(TestWriteWellKnown.class);
-        return result;
-    }
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TestBasic.class,
+    TestClassID.class,
+    TestEmptyProperties.class,
+    TestHPSFBugs.class,
+    TestMetaDataIPI.class,
+    TestUnicode.class,
+    TestWrite.class,
+    TestWriteWellKnown.class    
+})
+public class AllPOIHPSFBasicTests {
 }