Skip to content

Commit

Permalink
Merge branch 'master' of github.com:qos-ch/logback
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Sep 9, 2021
2 parents 5889356 + 7357bcf commit 5586c25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -56,7 +57,7 @@ public void setUp() {
ocsl.setContext(loggerContext);
ocsl.start();
loggerContext.getStatusManager().add(ocsl);
loggerConverter.setOptionList(List.of("30"));
loggerConverter.setOptionList(Arrays.asList("30"));
loggerConverter.setContext(loggerContext);
loggerConverter.start();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -165,7 +166,7 @@ public void testWithMarker() throws Exception {
checkForEquality(event, remoteEvent);

assertNotNull(remoteEvent.getMarkerList());
assertEquals(List.of(marker), remoteEvent.getMarkerList());
assertEquals(Arrays.asList(marker), remoteEvent.getMarkerList());
}

@Test
Expand All @@ -182,7 +183,7 @@ public void testWithTwoMarkers() throws Exception {
checkForEquality(event, remoteEvent);

assertNotNull(remoteEvent.getMarkerList());
assertEquals(List.of(marker), remoteEvent.getMarkerList());
assertEquals(Arrays.asList(marker), remoteEvent.getMarkerList());
}

@Test
Expand Down

0 comments on commit 5586c25

Please sign in to comment.