GitBucket
4.23.0
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
sample-java
/
sample-junit1
Browse code
テストコードを微修正。
master
1 parent
f452bbf
commit
d3506b1d6fc1a709549ef48dbc184cadeff47bd3
yhornisse
authored
on 27 Dec 2019
Patch
Showing
1 changed file
src/test/java/com/sample/AppTest.java
Ignore Space
Show notes
View
src/test/java/com/sample/AppTest.java
package com.sample; import static junit.framework.Assert.*; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { assertEquals("correct","Hello", "Hello"); // OK //assertEquals("correct","Hello", "hello"); // NG return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
package com.sample; import static junit.framework.Assert.*; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { assertEquals("correct","Hello", "Hello"); return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } }
Show line notes below