refactor String

This commit is contained in:
Ahmed Tawila 2017-09-30 22:59:34 +02:00
parent ecb0e9924a
commit 35182c4248
3 changed files with 0 additions and 38 deletions

View File

@ -1,12 +0,0 @@
package com.baeldung.string;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class CodePointAtTest {
@Test
public void whenCallCodePointAt_thenDecimalUnicodeReturned() {
assertEquals(97, "abcd".codePointAt(0));
}
}

View File

@ -1,12 +0,0 @@
package com.baeldung.string;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ConcatTest {
@Test
public void whenCallConcat_thenCorrect() {
assertEquals("elephant", "elep".concat("hant"));
}
}

View File

@ -1,14 +0,0 @@
package com.baeldung.string;
import static org.junit.Assert.assertArrayEquals;
import org.junit.Test;
public class GetBytesTest {
@Test
public void whenGetBytes_thenCorrect() {
byte[] byteArray = "abcd".getBytes();
byte[] expected = new byte[] { 97, 98, 99, 100 };
assertArrayEquals(expected, byteArray);
}
}