BAEL-1857
This commit is contained in:
parent
ec084c3b65
commit
b3579151a9
|
@ -0,0 +1,18 @@
|
|||
package com.baeldung;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class StringFunctionTest {
|
||||
|
||||
@Test
|
||||
public void test_upperCase() {
|
||||
assertEquals("TESTCASE", "testCase".toUpperCase());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_indexOf() {
|
||||
assertEquals(1, "testCase".indexOf("e"));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue