mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
Junit5 bump - ebean-test
This commit is contained in:
1 parent
42645f7236
commit
6227b081cf
9 files changed
+18
-18
No files matched your search
+2
-2
@@ -124,9 +124,9 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>io.avaje</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.13.1</version>
|
<version>1.0</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package io.ebean.test;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
import io.ebean.DB;
|
import io.ebean.DB;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.test.BSimpleWithGen;
|
import org.test.BSimpleWithGen;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package io.ebean.test;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
import org.assertj.core.api.Assertions;
|
import org.assertj.core.api.Assertions;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package io.ebean.test;
|
package io.ebean.test;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.JsonNode;
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.test.PlainBean;
|
import org.test.PlainBean;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package io.ebean.test;
|
package io.ebean.test;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
public class UserContextTest {
|
public class UserContextTest {
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package io.ebean.test.config.platform;
|
|||||||
|
|
||||||
import io.ebean.config.DatabaseConfig;
|
import io.ebean.config.DatabaseConfig;
|
||||||
import io.ebean.datasource.DataSourceConfig;
|
import io.ebean.datasource.DataSourceConfig;
|
||||||
import org.junit.Ignore;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ public class ConfigTest {
|
|||||||
assertThat(config.ignoreDockerShutdown("./src/test/resources/file-does-not-exist")).isFalse();
|
assertThat(config.ignoreDockerShutdown("./src/test/resources/file-does-not-exist")).isFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore
|
@Disabled
|
||||||
@Test
|
@Test
|
||||||
public void run_local_only_ignoreDockerShutdown() {
|
public void run_local_only_ignoreDockerShutdown() {
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package io.ebean.test.config.provider;
|
package io.ebean.test.config.provider;
|
||||||
|
|
||||||
import io.ebean.config.ServerConfig;
|
import io.ebean.config.ServerConfig;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
public class ProviderAutoConfigTest {
|
public class ProviderAutoConfigTest {
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package org.test;
|
|||||||
import io.ebean.DB;
|
import io.ebean.DB;
|
||||||
import io.ebean.annotation.Transactional;
|
import io.ebean.annotation.Transactional;
|
||||||
import io.ebean.test.ForTests;
|
import io.ebean.test.ForTests;
|
||||||
import org.junit.After;
|
import org.junit.jupiter.api.AfterEach;
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
@@ -14,12 +14,12 @@ public class ForTestsBeforeAfterTest {
|
|||||||
|
|
||||||
private ForTests.RollbackAll rollbackAll;
|
private ForTests.RollbackAll rollbackAll;
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void before() {
|
public void before() {
|
||||||
rollbackAll = ForTests.createRollbackAll();
|
rollbackAll = ForTests.createRollbackAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@AfterEach
|
||||||
public void after() {
|
public void after() {
|
||||||
rollbackAll.close();
|
rollbackAll.close();
|
||||||
assertThat(getCount()).isEqualTo(0);
|
assertThat(getCount()).isEqualTo(0);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import io.ebean.DB;
|
|||||||
import io.ebean.Transaction;
|
import io.ebean.Transaction;
|
||||||
import io.ebean.annotation.Transactional;
|
import io.ebean.annotation.Transactional;
|
||||||
import io.ebean.test.ForTests;
|
import io.ebean.test.ForTests;
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user