Skip to content
Permalink
Browse files
Break lines that are longer than 120 characters
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent ee07e3c commit 642ce05100d0807b7bf693059c9ee9671115a33a
Showing 1 changed file with 6 additions and 3 deletions.
@@ -32,7 +32,8 @@ public class TestJMeterUtils {
@Test
public void testGetResourceFileAsText() throws Exception{
String sep = System.getProperty("line.separator");
Assertions.assertEquals("line one" + sep + "line two" + sep, JMeterUtils.getResourceFileAsText("resourcefile.txt"));
Assertions.assertEquals("line one" + sep + "line two" + sep,
JMeterUtils.getResourceFileAsText("resourcefile.txt"));
}

@Test
@@ -50,11 +51,13 @@ public void testGetArrayPropDefault() throws Exception {
Path props = Files.createTempFile("testGetArrayPropDefault", ".properties");
JMeterUtils.loadJMeterProperties(props.toString());
JMeterUtils.getJMeterProperties().setProperty("testGetArrayPropDefaultEmpty", " ");
JMeterUtils.getJMeterProperties().setProperty("testGetArrayPropDefault", " Tolstoi Dostoievski Pouchkine Gorki ");
JMeterUtils.getJMeterProperties().setProperty("testGetArrayPropDefault",
" Tolstoi Dostoievski Pouchkine Gorki ");
Assertions.assertArrayEquals(new String[]{"Tolstoi", "Dostoievski", "Pouchkine", "Gorki"},
JMeterUtils.getArrayPropDefault("testGetArrayPropDefault", null));
Assertions.assertArrayEquals(new String[]{"Gilels", "Richter"},
JMeterUtils.getArrayPropDefault("testGetArrayPropDefaultMissing", new String[]{"Gilels", "Richter"}));
JMeterUtils.getArrayPropDefault("testGetArrayPropDefaultMissing",
new String[]{"Gilels", "Richter"}));
Assertions.assertArrayEquals(null,
JMeterUtils.getArrayPropDefault("testGetArrayPropDefaultEmpty", null));
}

0 comments on commit 642ce05

Please sign in to comment.