Skip to content

Commit

Permalink
hotfix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada committed Jul 5, 2021
1 parent 5c7f886 commit d30044e
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,38 +184,38 @@ void testListWorkspaces() throws JsonValidationException, IOException {
final StandardWorkspace workspace2 = generateWorkspace();

when(configRepository.listStandardWorkspaces(false))
.thenReturn(Lists.newArrayList(workspace, workspace2));
.thenReturn(Lists.newArrayList(workspace, workspace2));

WorkspaceRead expectedWorkspaceRead1 = new WorkspaceRead()
.workspaceId(workspace.getWorkspaceId())
.customerId(workspace.getCustomerId())
.email(workspace.getEmail())
.name(workspace.getName())
.slug(workspace.getSlug())
.initialSetupComplete(workspace.getInitialSetupComplete())
.displaySetupWizard(workspace.getDisplaySetupWizard())
.news(workspace.getNews())
.anonymousDataCollection(workspace.getAnonymousDataCollection())
.securityUpdates(workspace.getSecurityUpdates())
.notifications(List.of(generateApiNotification()));
.workspaceId(workspace.getWorkspaceId())
.customerId(workspace.getCustomerId())
.email(workspace.getEmail())
.name(workspace.getName())
.slug(workspace.getSlug())
.initialSetupComplete(workspace.getInitialSetupComplete())
.displaySetupWizard(workspace.getDisplaySetupWizard())
.news(workspace.getNews())
.anonymousDataCollection(workspace.getAnonymousDataCollection())
.securityUpdates(workspace.getSecurityUpdates())
.notifications(List.of(generateApiNotification()));

WorkspaceRead expectedWorkspaceRead2 = new WorkspaceRead()
.workspaceId(workspace2.getWorkspaceId())
.customerId(workspace2.getCustomerId())
.email(workspace2.getEmail())
.name(workspace2.getName())
.slug(workspace2.getSlug())
.initialSetupComplete(workspace2.getInitialSetupComplete())
.displaySetupWizard(workspace2.getDisplaySetupWizard())
.news(workspace2.getNews())
.anonymousDataCollection(workspace2.getAnonymousDataCollection())
.securityUpdates(workspace2.getSecurityUpdates())
.notifications(List.of(generateApiNotification()));
.workspaceId(workspace2.getWorkspaceId())
.customerId(workspace2.getCustomerId())
.email(workspace2.getEmail())
.name(workspace2.getName())
.slug(workspace2.getSlug())
.initialSetupComplete(workspace2.getInitialSetupComplete())
.displaySetupWizard(workspace2.getDisplaySetupWizard())
.news(workspace2.getNews())
.anonymousDataCollection(workspace2.getAnonymousDataCollection())
.securityUpdates(workspace2.getSecurityUpdates())
.notifications(List.of(generateApiNotification()));

final WorkspaceReadList actualWorkspaceReadList = workspacesHandler.listWorkspaces();

assertEquals(Lists.newArrayList(expectedWorkspaceRead1, expectedWorkspaceRead2),
actualWorkspaceReadList.getWorkspaces());
actualWorkspaceReadList.getWorkspaces());
}

@Test
Expand Down

0 comments on commit d30044e

Please sign in to comment.