diff --git a/src/test/java/com/dispose/test/dev/manager/DeviceTaskManagerTest.java b/src/test/java/com/dispose/test/dev/manager/DeviceTaskManagerTest.java index 51c17948..6d0b5eed 100644 --- a/src/test/java/com/dispose/test/dev/manager/DeviceTaskManagerTest.java +++ b/src/test/java/com/dispose/test/dev/manager/DeviceTaskManagerTest.java @@ -6,6 +6,7 @@ import com.dispose.manager.DeviceTaskManager; import com.dispose.mapper.DeviceTaskMapper; import com.dispose.mapper.DisposeTaskMapper; import com.dispose.pojo.entity.DeviceTask; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -35,7 +36,7 @@ import java.util.List; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DeviceTaskManagerTest { +public class DeviceTaskManagerTest extends InitTestEnvironment { /** * The Object mapper. */ diff --git a/src/test/java/com/dispose/test/dev/manager/DisposeDeviceManagerTest.java b/src/test/java/com/dispose/test/dev/manager/DisposeDeviceManagerTest.java index dd4633af..b1de3f4f 100644 --- a/src/test/java/com/dispose/test/dev/manager/DisposeDeviceManagerTest.java +++ b/src/test/java/com/dispose/test/dev/manager/DisposeDeviceManagerTest.java @@ -6,6 +6,7 @@ import com.dispose.manager.DisposeDeviceManager; import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.pojo.entity.DisposeDevice; import com.dispose.pojo.po.MulReturnType; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.pagehelper.PageHelper; @@ -38,7 +39,7 @@ import java.util.List; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DisposeDeviceManagerTest { +public class DisposeDeviceManagerTest extends InitTestEnvironment { /** * The Object mapper. */ diff --git a/src/test/java/com/dispose/test/dev/manager/DisposeTaskManagerTest.java b/src/test/java/com/dispose/test/dev/manager/DisposeTaskManagerTest.java index a837eed7..a415d73f 100644 --- a/src/test/java/com/dispose/test/dev/manager/DisposeTaskManagerTest.java +++ b/src/test/java/com/dispose/test/dev/manager/DisposeTaskManagerTest.java @@ -10,6 +10,7 @@ import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.mapper.DisposeTaskMapper; import com.dispose.mapper.UserAccountMapper; import com.dispose.pojo.entity.DisposeTask; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -39,7 +40,7 @@ import java.util.List; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DisposeTaskManagerTest { +public class DisposeTaskManagerTest extends InitTestEnvironment { /** * The Object mapper. */ diff --git a/src/test/java/com/dispose/test/dev/mapper/DeviceTaskMapperTest.java b/src/test/java/com/dispose/test/dev/mapper/DeviceTaskMapperTest.java index 546b8796..75850d5c 100644 --- a/src/test/java/com/dispose/test/dev/mapper/DeviceTaskMapperTest.java +++ b/src/test/java/com/dispose/test/dev/mapper/DeviceTaskMapperTest.java @@ -5,6 +5,7 @@ import com.dispose.mapper.DeviceTaskMapper; import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.mapper.DisposeTaskMapper; import com.dispose.pojo.entity.DeviceTask; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -35,7 +36,7 @@ import java.util.List; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DeviceTaskMapperTest { +public class DeviceTaskMapperTest extends InitTestEnvironment { /** * The Dispose task mapper. */ diff --git a/src/test/java/com/dispose/test/dev/mapper/DisposeCapacityMapperTest.java b/src/test/java/com/dispose/test/dev/mapper/DisposeCapacityMapperTest.java index 8fadff1a..6015348d 100644 --- a/src/test/java/com/dispose/test/dev/mapper/DisposeCapacityMapperTest.java +++ b/src/test/java/com/dispose/test/dev/mapper/DisposeCapacityMapperTest.java @@ -6,6 +6,7 @@ import com.dispose.common.IpAddrType; import com.dispose.mapper.DisposeCapacityMapper; import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.pojo.entity.DisposeCapacity; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -36,7 +37,7 @@ import java.util.List; @Transactional @Rollback @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) -public class DisposeCapacityMapperTest { +public class DisposeCapacityMapperTest extends InitTestEnvironment { /** * The Dispose capacity mapper. diff --git a/src/test/java/com/dispose/test/dev/mapper/DisposeDeviceMapperTest.java b/src/test/java/com/dispose/test/dev/mapper/DisposeDeviceMapperTest.java index 191fe854..48d5dd54 100644 --- a/src/test/java/com/dispose/test/dev/mapper/DisposeDeviceMapperTest.java +++ b/src/test/java/com/dispose/test/dev/mapper/DisposeDeviceMapperTest.java @@ -5,6 +5,7 @@ import com.dispose.common.HttpType; import com.dispose.common.ObjectStatus; import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.pojo.entity.DisposeDevice; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -35,7 +36,7 @@ import java.util.Optional; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DisposeDeviceMapperTest { +public class DisposeDeviceMapperTest extends InitTestEnvironment { /** * The Object mapper. */ diff --git a/src/test/java/com/dispose/test/dev/mapper/DisposeTaskMapperTest.java b/src/test/java/com/dispose/test/dev/mapper/DisposeTaskMapperTest.java index c2e0d986..2605767b 100644 --- a/src/test/java/com/dispose/test/dev/mapper/DisposeTaskMapperTest.java +++ b/src/test/java/com/dispose/test/dev/mapper/DisposeTaskMapperTest.java @@ -8,6 +8,7 @@ import com.dispose.mapper.DisposeDeviceMapper; import com.dispose.mapper.DisposeTaskMapper; import com.dispose.mapper.UserAccountMapper; import com.dispose.pojo.entity.DisposeTask; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -37,7 +38,7 @@ import java.util.List; @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @Transactional @Rollback -public class DisposeTaskMapperTest { +public class DisposeTaskMapperTest extends InitTestEnvironment { /** * The Dispose task mapper. */ diff --git a/src/test/java/com/dispose/test/dev/mapper/UserAccountMapperTest.java b/src/test/java/com/dispose/test/dev/mapper/UserAccountMapperTest.java index 3f0ed3ba..3809abf3 100644 --- a/src/test/java/com/dispose/test/dev/mapper/UserAccountMapperTest.java +++ b/src/test/java/com/dispose/test/dev/mapper/UserAccountMapperTest.java @@ -3,6 +3,7 @@ package com.dispose.test.dev.mapper; import com.dispose.common.ObjectStatus; import com.dispose.mapper.UserAccountMapper; import com.dispose.pojo.entity.UserAccount; +import com.dispose.test.dev.Global.InitTestEnvironment; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; @@ -33,7 +34,7 @@ import java.util.List; @FixMethodOrder(MethodSorters.NAME_ASCENDING) @Transactional @Rollback -public class UserAccountMapperTest { +public class UserAccountMapperTest extends InitTestEnvironment { /** * The Obj mapper. */