Skip to content

Commit

Permalink
spotless:applied
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcao13 committed Sep 6, 2022
1 parent 07d7212 commit 55d1077
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@

import graphql.schema.DataFetchingEnvironment;

class AllArchivedRecordingsFetcher extends AbstractPermissionedDataFetcher<List<ArchivedRecordingInfo>> {
class AllArchivedRecordingsFetcher
extends AbstractPermissionedDataFetcher<List<ArchivedRecordingInfo>> {

private final RecordingArchiveHelper archiveHelper;

Expand All @@ -70,7 +71,8 @@ public Set<ResourceAction> resourceActions() {
}

@Override
List<ArchivedRecordingInfo> getAuthenticated(DataFetchingEnvironment environment) throws Exception {
List<ArchivedRecordingInfo> getAuthenticated(DataFetchingEnvironment environment)
throws Exception {
FilterInput filter = FilterInput.from(environment);
List<ArchivedRecordingInfo> result = new ArrayList<>();
if (filter.contains(FilterInput.Key.SOURCE_TARGET)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ static ActiveRecordingsFetcher provideActiveRecordingsFetcher(AuthManager auth)
}

@Provides
static AllArchivedRecordingsFetcher provideAllArchivedRecordingsFetcher(AuthManager auth, RecordingArchiveHelper recordingArchiveHelper) {
static AllArchivedRecordingsFetcher provideAllArchivedRecordingsFetcher(
AuthManager auth, RecordingArchiveHelper recordingArchiveHelper) {
return new AllArchivedRecordingsFetcher(auth, recordingArchiveHelper);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void shouldReturnRecordingsLabelFiltered() throws Exception {
when(env.getGraphQlContext()).thenReturn(graphCtx);
when(auth.validateHttpHeader(Mockito.any(), Mockito.any()))
.thenReturn(CompletableFuture.completedFuture(true));

ArchivedRecordingInfo recording1 = Mockito.mock(ArchivedRecordingInfo.class);
ArchivedRecordingInfo recording2 = Mockito.mock(ArchivedRecordingInfo.class);
ArchivedRecordingInfo recording3 = Mockito.mock(ArchivedRecordingInfo.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@
*/
package io.cryostat.net.web.http.api.v2.graph;

import static org.mockito.Mockito.when;

import java.util.concurrent.CompletableFuture;

import io.cryostat.net.AuthManager;
import io.cryostat.net.security.ResourceAction;
import io.cryostat.net.web.http.api.ApiVersion;
import io.cryostat.net.web.http.api.v2.ApiException;

import graphql.GraphQL;
import io.vertx.core.http.HttpMethod;
import io.vertx.ext.web.RoutingContext;

import static org.mockito.Mockito.when;

import java.util.concurrent.CompletableFuture;

import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assertions;
Expand Down

0 comments on commit 55d1077

Please sign in to comment.