Skip to content

Commit

Permalink
[#1026] Fix junit tests in streampipes-connect-management
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe committed Jan 3, 2023
1 parent 86f87af commit 069bfc8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 469 deletions.
10 changes: 0 additions & 10 deletions streampipes-connect-management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.assertEquals;
Expand All @@ -49,7 +48,7 @@ public void getAdapterFailNull() throws AdapterException {

@Test(expected = AdapterException.class)
public void getAdapterFail() throws AdapterException {
List<AdapterDescription> adapterDescriptions = Arrays.asList(new GenericAdapterStreamDescription());
List<AdapterDescription> adapterDescriptions = List.of(new GenericAdapterStreamDescription());
AdapterInstanceStorageImpl adapterStorage = mock(AdapterInstanceStorageImpl.class);
AdapterResourceManager resourceManager = mock(AdapterResourceManager.class);
when(adapterStorage.getAllAdapters()).thenReturn(adapterDescriptions);
Expand All @@ -62,7 +61,7 @@ public void getAdapterFail() throws AdapterException {

@Test
public void getAllAdaptersSuccess() throws AdapterException {
List<AdapterDescription> adapterDescriptions = Arrays.asList(new GenericAdapterStreamDescription());
List<AdapterDescription> adapterDescriptions = List.of(new GenericAdapterStreamDescription());
AdapterInstanceStorageImpl adapterStorage = mock(AdapterInstanceStorageImpl.class);
AdapterResourceManager resourceManager = mock(AdapterResourceManager.class);
when(adapterStorage.getAllAdapters()).thenReturn(adapterDescriptions);
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 069bfc8

Please sign in to comment.