Skip to content

Commit

Permalink
initialize test correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHarbo committed Dec 6, 2024
1 parent 9ffc1c1 commit 3090f1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.Random;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class PagedTimeMapTest {
Expand All @@ -42,6 +41,7 @@ public class PagedTimeMapTest {
@BeforeClass
public static void setUp() throws Exception {
log.info("Setting up embedded server");
PropertiesLoader.initProperties();
PropertiesLoader.MEMENTO_TIMEMAP_PAGINGLIMIT = 1;
PropertiesLoader.MEMENTO_TIMEMAP_PAGESIZE = 5;
PropertiesLoaderWeb.initProperties();
Expand Down Expand Up @@ -153,7 +153,7 @@ public void testPagedTimeMapNoPageJSONConstruction() throws IOException, URISynt
private static String convertStreamingTimeMapToString(StreamingOutput timeMap) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
timeMap.write(output);
return new String(output.toByteArray(), StandardCharsets.UTF_8);
return output.toString(StandardCharsets.UTF_8);
}

final String testPagedTimeMapJSONFirstPage = "{\"original_uri\":\"http://kb.dk/\"," +
Expand Down

0 comments on commit 3090f1f

Please sign in to comment.