more tests / back to JUnit 4
This commit is contained in:
parent
43554b8215
commit
c0654b10ad
4 changed files with 27 additions and 20 deletions
33
pom.xml
33
pom.xml
|
@ -174,12 +174,13 @@
|
|||
<goal>report</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludes>ch/ethz/seb/sebserver/gui/content/**/*
|
||||
<exclude>ch/ethz/seb/sebserver/gui/content/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/form/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/table/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/widget/**/*</exclude>
|
||||
</excludes>
|
||||
<excludes>
|
||||
ch/ethz/seb/sebserver/gui/content/**/*
|
||||
<exclude>ch/ethz/seb/sebserver/gui/content/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/form/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/table/**/*</exclude>
|
||||
<exclude>ch/ethz/seb/sebserver/gui/widget/**/*</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
@ -329,15 +330,21 @@
|
|||
|
||||
<!-- Testing -->
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.junit.jupiter</groupId> -->
|
||||
<!-- <artifactId>junit-jupiter-api</artifactId> -->
|
||||
<!-- <scope>test</scope> -->
|
||||
<!-- </dependency> -->
|
||||
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.junit.vintage</groupId> -->
|
||||
<!-- <artifactId>junit-vintage-engine</artifactId> -->
|
||||
<!-- <scope>test</scope> -->
|
||||
<!-- </dependency> -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Arrays;
|
|||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.Test;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@ import java.util.stream.Collectors;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.tomcat.util.buf.StringUtils;
|
||||
import org.joda.time.DateTimeZone;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.test.context.jdbc.Sql;
|
||||
|
||||
|
@ -117,13 +117,13 @@ import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.useraccount.SaveU
|
|||
|
||||
public class UseCasesIntegrationTest extends GuiIntegrationTest {
|
||||
|
||||
@BeforeAll
|
||||
@Before
|
||||
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" })
|
||||
public void init() {
|
||||
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
@After
|
||||
@Sql(scripts = { "classpath:schema-test.sql", "classpath:data-test.sql" })
|
||||
public void cleanup() {
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ package ch.ethz.seb.sebserver.webservice.servicelayer.lms.impl.edx;
|
|||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
|
||||
|
@ -26,7 +26,7 @@ public class OpenEdxCourseRestrictionDataTest {
|
|||
final OpenEdxCourseRestrictionData data = new OpenEdxCourseRestrictionData(null, null, null, null, null, false);
|
||||
final String json = mapper.writeValueAsString(data);
|
||||
assertEquals(
|
||||
"{\"CONFIG_KEYS\":[],\"BROWSER_KEYS\":[],\"WHITELIST_PATHS\":[],\"BLACKLIST_CHAPTERS\":[],\"PERMISSION_COMPONENTS\":[\"AlwaysAllowStaff\"],\"USER_BANNING_ENABLED\":false}",
|
||||
"{\"CONFIG_KEYS\":[],\"BROWSER_KEYS\":[],\"WHITELIST_PATHS\":[],\"BLACKLIST_CHAPTERS\":[],\"PERMISSION_COMPONENTS\":[],\"USER_BANNING_ENABLED\":false}",
|
||||
json);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue