Skip to content

Commit

Permalink
Fix build warning about test annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Feb 8, 2024
1 parent 7810ddf commit 01655d0
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public void after() {
verifyNoMoreInteractions(timeProvider, clusterService, nodeClient);
}

@Test
public void createView() {
final var request = new CreateViewAction.Request("a", "b", List.of(new CreateViewAction.Request.Target("my-index-*")));
final var listener = mock(ActionListener.class);
Expand All @@ -78,7 +77,6 @@ public void createView() {
verify(timeProvider).getAsLong();
}

@Test
public void updateView() {
final var request = new CreateViewAction.Request("a", "b", List.of(new CreateViewAction.Request.Target("my-index-*")));
final var listener = mock(ActionListener.class);
Expand All @@ -90,7 +88,6 @@ public void updateView() {
verify(timeProvider).getAsLong();
}

@Test
public void updateView_doesNotExist() {
final var request = new CreateViewAction.Request("a", "b", List.of(new CreateViewAction.Request.Target("my-index-*")));
final var listener = mock(ActionListener.class);
Expand All @@ -100,7 +97,6 @@ public void updateView_doesNotExist() {
MatcherAssert.assertThat(ex.getMessage(), equalTo("abc"));
}

@Test
public void deleteView() {
final var request = new DeleteViewAction.Request("viewName");
final var listener = mock(ActionListener.class);
Expand All @@ -111,7 +107,6 @@ public void deleteView() {
verify(clusterService).submitStateUpdateTask(eq("delete_view_task"), any());
}

@Test
public void deleteView_doesNotExist() {
final var request = new DeleteViewAction.Request("viewName");
final var listener = mock(ActionListener.class);
Expand All @@ -122,7 +117,6 @@ public void deleteView_doesNotExist() {
MatcherAssert.assertThat(ex.getMessage(), equalTo("abc"));
}

@Test
public void getView() {
final var request = new GetViewAction.Request("viewName");
final var listener = mock(ActionListener.class);
Expand All @@ -133,7 +127,6 @@ public void getView() {
verify(listener).onResponse(any());
}

@Test
public void getView_doesNotExist() {
final var request = new GetViewAction.Request("viewName");
final var listener = mock(ActionListener.class);
Expand All @@ -144,7 +137,6 @@ public void getView_doesNotExist() {
MatcherAssert.assertThat(ex.getMessage(), equalTo("abc"));
}

@Test
public void listViewNames() {
final var clusterState = new ClusterState.Builder(new ClusterName("MyCluster")).metadata(
new Metadata.Builder().views(Map.of(typicalView.getName(), typicalView)).build()
Expand All @@ -158,7 +150,6 @@ public void listViewNames() {
verify(listener).onResponse(any());
}

@Test
public void listViewNames_noViews() {
final var clusterState = new ClusterState.Builder(new ClusterName("MyCluster")).build();
final var listener = mock(ActionListener.class);
Expand All @@ -170,7 +161,6 @@ public void listViewNames_noViews() {
verify(listener).onResponse(any());
}

@Test
public void searchView() {
final var request = spy(new SearchViewAction.Request("view"));
final var listener = mock(ActionListener.class);
Expand Down

0 comments on commit 01655d0

Please sign in to comment.