Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajantha-bhat committed Feb 2, 2023
1 parent 8d56b58 commit 9d6c4f2
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ public void testNamespacesWithV1Api() {
namespaces = catalog.listNamespaces(Namespace.of("foo"));
// NessieApiV1 should include both implicit and explicit namespaces
Assertions.assertThat(namespaces)
.isNotNull()
.hasSize(2)
.isEqualTo(Arrays.asList(Namespace.of("foo"), Namespace.of("foo", "bar")));
.containsExactlyInAnyOrder(Namespace.of("foo"), Namespace.of("foo", "bar"));
}

@Test
Expand All @@ -103,10 +101,7 @@ public void testNamespacesWithV2Api() {
List<Namespace> namespaces;
namespaces = catalog.listNamespaces(Namespace.of("foo"));
// NessieApiV2 will not list the implicit namespaces
Assertions.assertThat(namespaces)
.isNotNull()
.hasSize(1)
.isEqualTo(Collections.singletonList(Namespace.of("foo")));
Assertions.assertThat(namespaces).isEqualTo(Collections.singletonList(Namespace.of("foo")));
}

private void testListTables() {
Expand Down

0 comments on commit 9d6c4f2

Please sign in to comment.