New unit test format

This commit is contained in:
Nick
2019-08-30 21:11:18 +01:00
parent db85c8f275
commit 6cd385e4c0
19972 changed files with 1626600 additions and 0 deletions
@@ -0,0 +1,18 @@
package com.baeldung;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class StringFunctionUnitTest {
@Test
public void test_upperCase() {
assertEquals("TESTCASE", "testCase".toUpperCase());
}
@Test
public void test_indexOf() {
assertEquals(1, "testCase".indexOf("e"));
}
}