Skip to content

Commit

Permalink
tag integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Sep 3, 2019
1 parent 3985623 commit ee37b9d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<artifactId>junit-platform-runner</artifactId>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -215,6 +215,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludedGroups>IntegrationTest</excludedGroups>
<argLine>
--illegal-access=permit
</argLine>
Expand All @@ -224,6 +225,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<excludedGroups>IntegrationTest</excludedGroups>
<argLine>
--illegal-access=permit
</argLine>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.Arrays;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -30,6 +31,7 @@

@SpringBootTest(classes = ApiApplicationLocal.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("local,localstack,test")
@Tag("IntegrationTest")
public class AttachmentStorageHttpTest extends AbstractTestExecutionListener {

private static final String FNR = "12345678910";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.jupiter.api.Tag;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -42,6 +43,7 @@
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ApiApplicationLocal.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles({ LOCAL, LOCALSTACK, TEST })
@Tag("IntegrationTest")
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class SoknadStorageHttpTest extends AbstractTestExecutionListener {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

import org.junit.Rule;
import org.junit.Test;
import org.springframework.context.annotation.Profile;
import org.springframework.test.context.ActiveProfiles;
import org.testcontainers.containers.localstack.LocalStackContainer;

import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;

@ActiveProfiles("local,localstack,test")
@Profile("localstack")
public class StorageTest {

@Rule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package no.nav.foreldrepenger.selvbetjening.vedlegg;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.springframework.http.MediaType.IMAGE_GIF;

import java.util.Arrays;
Expand Down

0 comments on commit ee37b9d

Please sign in to comment.