Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed Jun 19, 2022
1 parent bbe89ce commit becae16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -36,7 +35,7 @@ void testReverse() {
@Test
void testConcat() {
final List<List<Integer>> lists = List.of(List.of(1, 2, 3), List.of(4, 5, 6), List.of(7, 8, 9));
final List<Integer> expected = List.of(1,2,3,4,5,6,7,8,9);
final List<Integer> expected = List.of(1, 2, 3, 4, 5, 6, 7, 8, 9);
final List<Integer> actual = MoreLists.concat(lists.get(0), lists.get(1), lists.get(2));
assertEquals(expected, actual);
}
Expand All @@ -45,9 +44,9 @@ void testConcat() {
void testAdd() {
final List<Integer> originalList = List.of(1, 2, 3);

assertEquals(List.of(1,2,3,4), MoreLists.add(originalList, 4));
assertEquals(List.of(1, 2, 3, 4), MoreLists.add(originalList, 4));
// verify original list was not mutated.
assertEquals(List.of(1,2,3), originalList);
assertEquals(List.of(1, 2, 3), originalList);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public static List<String> getSortedSecretPaths(final JsonNode spec) {
.stream()
.anyMatch(field -> field.getKey().equals(JsonSecretsProcessor.AIRBYTE_SECRET_FIELD)))
.stream()
.map(JsonPaths::mapJsonSchemaPathToJsonPath)
.sorted()
.toList();
}
Expand Down

0 comments on commit becae16

Please sign in to comment.