Merge pull request #7973 from Thabo08/java-file-class-demo

java-file-class demo code
This commit is contained in:
Erik Pragt
2019-10-08 08:24:26 +11:00
committed by GitHub
parent db85c8f275
commit 43e39881a5
20348 changed files with 1637651 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"));
}
}