1
|
package eu.dnetlib.msro.openaireplus.workflows.nodes.vre;
|
2
|
|
3
|
import org.junit.Assert;
|
4
|
import org.junit.Test;
|
5
|
|
6
|
/**
|
7
|
* Created by Alessia Bardi on 2019-06-20.
|
8
|
*
|
9
|
* @author Alessia Bardi
|
10
|
*/
|
11
|
public class VREPostJobNodeTest {
|
12
|
|
13
|
private String textWithNewLine = "Hello\\n World\\n!";
|
14
|
private String expected = "Hello\n World\n!";
|
15
|
|
16
|
@Test
|
17
|
public void testNewLine(){
|
18
|
String cleaned = textWithNewLine.replace("\\n", "\n");
|
19
|
Assert.assertEquals(expected, cleaned);
|
20
|
|
21
|
}
|
22
|
|
23
|
|
24
|
}
|