Skip to content

Commit

Permalink
Fixed format in CentralDogmaPropertySupplierTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lazmond3 committed Dec 13, 2021
1 parent f82bae3 commit e852943
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ public void testRegisterWithDefaultSettings() {
CompletableFuture.completedFuture(Collections.emptyMap())
);
when(centralDogma.push(
eq(PROJECT_NAME), eq(REPOSITORY_NAME), eq(Revision.HEAD),
eq(PROJECT_NAME),
eq(REPOSITORY_NAME),
eq(Revision.HEAD),
any(String.class),
eq(Change.ofJsonUpsert(FILENAME, defaultProperties())))
).thenReturn(
Expand Down Expand Up @@ -222,7 +224,9 @@ public void testRegisterWithCustomizedSettings() {
);

when(centralDogma.push(
eq(PROJECT_NAME), eq(REPOSITORY_NAME), eq(Revision.HEAD),
eq(PROJECT_NAME),
eq(REPOSITORY_NAME),
eq(Revision.HEAD),
any(String.class),
eq(Change.ofJsonUpsert(FILENAME, jsonNodeProperties)))
).thenReturn(
Expand All @@ -235,9 +239,12 @@ public void testRegisterWithCustomizedSettings() {
properties);

verify(centralDogma, times(1)).push(
eq(PROJECT_NAME), eq(REPOSITORY_NAME), eq(Revision.HEAD),
eq(PROJECT_NAME),
eq(REPOSITORY_NAME),
eq(Revision.HEAD),
any(String.class),
eq(Change.ofJsonUpsert(FILENAME, jsonNodeProperties)));
eq(Change.ofJsonUpsert(FILENAME, jsonNodeProperties))
);
}

private static JsonNode defaultProperties() {
Expand Down

0 comments on commit e852943

Please sign in to comment.