Skip to content

Commit

Permalink
sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
cn337131 committed Jan 21, 2025
1 parent bdc8bc0 commit b536dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public void shouldThrowExceptionIfOperationChainIsInvalid(@Mock final StorePrope
}

@Test
public void shouldCallDoUnhandledOperationWhenDoOperationWithUnknownOperationClass(@Mock final StoreProperties properties) throws Exception {
void shouldCallDoUnhandledOperationWhenDoOperationWithUnknownOperationClass(@Mock final StoreProperties properties) throws Exception {
// Given
final Schema schema = createSchemaMock();
final Operation operation = new SetVariable.Builder().variableName("aVariable").input("inputString").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void shouldDoOperationValidated() throws Exception {

AccumuloStore store = Mockito.mock(AccumuloStore.class);
final Object elementCount = handler.doOperation(op, new Context(), store);
assertThat(elementCount).isEqualTo("Elements deleted: 1");
assertThat(elementCount).isEqualTo(1L);

verify(store).deleteElements(any(ValidatedElements.class));
}
Expand All @@ -63,7 +63,7 @@ void shouldDoOperationNotValidated() throws Exception {

AccumuloStore store = Mockito.mock(AccumuloStore.class);
final Object elementCount = handler.doOperation(op, new Context(), store);
assertThat(elementCount).isEqualTo("Elements deleted: 1");
assertThat(elementCount).isEqualTo(1L);

verify(store).deleteElements(anyIterable());
}
Expand Down

0 comments on commit b536dc6

Please sign in to comment.