Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<geojson-jackson.version>1.14</geojson-jackson.version>
<apache-commons-csv.version>1.9.0</apache-commons-csv.version>
<apache-commons-lang.version>3.12.0</apache-commons-lang.version>
<testcontainers.version>1.21.4</testcontainers.version>
<testcontainers.version>2.0.3</testcontainers.version>
<!-- Version of flyway dependent on version of micronaut -->
<flyway.version>7.7.3</flyway.version>
<guava.version>31.0.1-jre</guava.version>
Expand Down Expand Up @@ -357,7 +357,7 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>localstack</artifactId>
<artifactId>testcontainers-localstack</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
Expand Down Expand Up @@ -541,16 +541,6 @@
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Temporary: skip Gigwa IT until the Gigwa image issue is resolved -->
<excludes>
<exclude>**/GigwaGenotypeServiceImplIntegrationTest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import javax.inject.Inject;

import static io.micronaut.http.HttpRequest.GET;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import javax.inject.Inject;

import static io.micronaut.http.HttpRequest.GET;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import javax.inject.Inject;

import static io.micronaut.http.HttpRequest.GET;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
import java.util.*;
import java.util.stream.Collectors;
import static io.micronaut.http.HttpRequest.*;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.*;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.micronaut.test.annotation.MockBean;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.breedinginsight.BrAPITest;
import org.breedinginsight.TestUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import javax.inject.Inject;

import static io.micronaut.http.HttpRequest.GET;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import javax.inject.Inject;

import static io.micronaut.http.HttpRequest.GET;
import static org.junit.Assert.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

@MicronautTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import io.micronaut.test.annotation.MockBean;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.brapi.client.v2.ApiResponse;
import org.brapi.client.v2.BrAPIClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import io.micronaut.http.netty.cookies.NettyCookie;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import org.breedinginsight.BrAPITest;
import org.breedinginsight.DatabaseTest;
import org.breedinginsight.TestUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.micronaut.test.annotation.MockBean;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.breedinginsight.DatabaseTest;
import org.breedinginsight.TestUtils;
Expand All @@ -45,7 +45,7 @@
import org.breedinginsight.services.UserService;
import org.breedinginsight.utilities.email.EmailUtil;
import org.jooq.DSLContext;
import org.junit.Assert;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.*;
import javax.inject.Inject;
import javax.inject.Named;
Expand Down Expand Up @@ -335,7 +335,7 @@ void postUsersWithRolesSuccess() {
assertEquals(validSystemRole.getId().toString(), adminRole.get("id").getAsString(), "Inserted role id doesn't match what was passed.");

} catch (IllegalStateException e) {
Assert.fail(e.getMessage());
Assertions.fail(e.getMessage());
}
}

Expand Down Expand Up @@ -371,7 +371,7 @@ public void postUsersNoRolesSuccess() {
testUserUUID = result.get("id").getAsString();

} catch (IllegalStateException e) {
Assert.fail(e.getMessage());
Assertions.fail(e.getMessage());
}
}

Expand Down Expand Up @@ -450,7 +450,7 @@ public void putUsersOwnEmailAlreadyExists() {


} catch (IllegalStateException e) {
Assert.fail(e.getMessage());
Assertions.fail(e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import io.micronaut.http.netty.cookies.NettyCookie;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.breedinginsight.BrAPITest;
import org.breedinginsight.TestUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import io.micronaut.http.netty.cookies.NettyCookie;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import io.reactivex.Flowable;
import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.breedinginsight.BrAPITest;
import org.breedinginsight.TestUtils;
Expand All @@ -42,7 +42,6 @@
import org.breedinginsight.model.Program;
import org.breedinginsight.services.SpeciesService;
import org.jooq.DSLContext;
import org.junit.Rule;
import org.junit.jupiter.api.*;

import javax.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.breedinginsight.services.parsers;

import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.breedinginsight.api.model.v1.response.RowValidationErrors;
import org.breedinginsight.api.model.v1.response.ValidationError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.breedinginsight.services.validators;

import junit.framework.AssertionFailedError;
import org.opentest4j.AssertionFailedError;
import lombok.SneakyThrows;
import org.brapi.v2.model.pheno.BrAPIScaleValidValuesCategories;
import org.breedinginsight.api.model.v1.response.RowValidationErrors;
Expand Down