From: Andreas Beeker Date: Sat, 26 Apr 2014 23:37:40 +0000 (+0000) Subject: junit4 fix X-Git-Tag: REL_3_11_BETA1~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59a159004820df6d7569795ee514f73cfaf42f98;p=poi.git junit4 fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590327 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hpsf/basic/AllPOIHPSFBasicTests.java b/src/testcases/org/apache/poi/hpsf/basic/AllPOIHPSFBasicTests.java index f71193644c..b573c28d90 100644 --- a/src/testcases/org/apache/poi/hpsf/basic/AllPOIHPSFBasicTests.java +++ b/src/testcases/org/apache/poi/hpsf/basic/AllPOIHPSFBasicTests.java @@ -17,24 +17,23 @@ 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 { }