作業部屋の使い方を試しています。
(empty log message)
| @@ -0,0 +1,30 @@ | ||
| 1 | +/* | |
| 2 | + * To change this license header, choose License Headers in Project Properties. | |
| 3 | + * To change this template file, choose Tools | Templates | |
| 4 | + * and open the template in the editor. | |
| 5 | + */ | |
| 6 | + | |
| 7 | +package sample; | |
| 8 | + | |
| 9 | +import junit.framework.Test; | |
| 10 | +import junit.framework.TestCase; | |
| 11 | +import junit.framework.TestSuite; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * | |
| 15 | + * @author kgto | |
| 16 | + */ | |
| 17 | +public class JUnit3TestSuite extends TestCase { | |
| 18 | + | |
| 19 | + public JUnit3TestSuite(String testName) { | |
| 20 | + super(testName); | |
| 21 | + } | |
| 22 | + | |
| 23 | + public static Test suite() { | |
| 24 | + TestSuite suite = new TestSuite("JUnit3TestSuite"); | |
| 25 | + suite.addTest(new TestSuite(sample.VectorsJUnit3Test.class)); | |
| 26 | + suite.addTest(new TestSuite(sample.UtilsJUnit3Test.class)); | |
| 27 | + return suite; | |
| 28 | + } | |
| 29 | + | |
| 30 | +} |
| @@ -0,0 +1,20 @@ | ||
| 1 | +/* | |
| 2 | + * To change this license header, choose License Headers in Project Properties. | |
| 3 | + * To change this template file, choose Tools | Templates | |
| 4 | + * and open the template in the editor. | |
| 5 | + */ | |
| 6 | + | |
| 7 | +package sample; | |
| 8 | + | |
| 9 | +import org.junit.runner.RunWith; | |
| 10 | +import org.junit.runners.Suite; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * | |
| 14 | + * @author kgto | |
| 15 | + */ | |
| 16 | +@RunWith(Suite.class) | |
| 17 | +@Suite.SuiteClasses({sample.UtilsJUnit4Test.class, sample.VectorsJUnit4Test.class}) | |
| 18 | +public class JUnit4TestSuite { | |
| 19 | + | |
| 20 | +} |
| @@ -107,7 +107,7 @@ | ||
| 107 | 107 | fail("The test case is a prototype."); |
| 108 | 108 | } |
| 109 | 109 | */ |
| 110 | - @Ignore | |
| 110 | + //@Ignore | |
| 111 | 111 | @Test |
| 112 | 112 | public void temporarilyDisabledTest() throws Exception { |
| 113 | 113 | System.out.println("* UtilsJUnit4Test: test method 4 - checkExpectedException()"); |