diff --git a/core-java/src/test/java/com/baeldung/java/conversion/StringCharArrayConversionTest.java b/core-java/src/test/java/com/baeldung/java/conversion/StringCharArrayConversionTest.java deleted file mode 100644 index c9eff5e7e2..0000000000 --- a/core-java/src/test/java/com/baeldung/java/conversion/StringCharArrayConversionTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.baeldung.java.conversion; - -import org.junit.Test; - -import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertEquals; - -public class StringCharArrayConversionTest { - - @Test - public void givenString_whenConvertedToCharArray_ThenCorrect() throws Exception { - String beforeConvCharArr = "Text"; - char[] afterConvCharArr = {'T','e','x','t'}; - - assertArrayEquals(beforeConvCharArr.toCharArray(),afterConvCharArr); - } - - @Test - public void givenCharArray_whenConvertedToString_ThenCorrect() throws Exception { - char[] beforeConvStr = {'T','e','x','t'}; - String afterConvStr = "Text"; - - assertEquals(String.valueOf(beforeConvStr),afterConvStr); - } -}