Fix HexToAsciiUnitTest
This commit is contained in:
parent
924b960746
commit
adb4b9bfdf
@ -1,13 +1,13 @@
|
|||||||
package com.baeldung.hexToAscii;
|
package com.baeldung.hexToAscii;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class HexToAsciiUnitTest {
|
public class HexToAsciiUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public static void whenHexToAscii() {
|
public void whenHexToAscii() {
|
||||||
String asciiString = "http://www.baeldung.com/jackson-serialize-dates";
|
String asciiString = "http://www.baeldung.com/jackson-serialize-dates";
|
||||||
String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573";
|
String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573";
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ public class HexToAsciiUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public static void whenAsciiToHex() {
|
public void whenAsciiToHex() {
|
||||||
String asciiString = "http://www.baeldung.com/jackson-serialize-dates";
|
String asciiString = "http://www.baeldung.com/jackson-serialize-dates";
|
||||||
String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573";
|
String hexEquivalent = "687474703a2f2f7777772e6261656c64756e672e636f6d2f6a61636b736f6e2d73657269616c697a652d6461746573";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user