parent
037221684b
commit
2fbf0f3e11
|
@ -50,6 +50,8 @@ public class DisposeNodeManagerImpl implements DisposeNodeManager {
|
|||
*/
|
||||
@Override
|
||||
public void loadDisposeNodeFromDB() {
|
||||
disposeDevMap.clear();
|
||||
|
||||
List<DisposeDevice> devList = disposeDeviceMapper.selectAll();
|
||||
|
||||
if (devList == null) {
|
||||
|
|
|
@ -27,8 +27,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@SpringBootTest
|
||||
@Slf4j
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
@Transactional
|
||||
@Rollback
|
||||
public class DisposeNodeManagerTest extends InitTestEnvironment {
|
||||
/**
|
||||
* The Used ip addr.
|
||||
|
@ -61,6 +59,7 @@ public class DisposeNodeManagerTest extends InitTestEnvironment {
|
|||
*/
|
||||
@Override
|
||||
public void userLogin() {
|
||||
disposeNodeManager.loadDisposeNodeFromDB();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -114,8 +113,6 @@ public class DisposeNodeManagerTest extends InitTestEnvironment {
|
|||
Assert.assertEquals(disposeNodeManager.getAllDisposeDevice().size(), 0);
|
||||
disposeNodeManager.cleanupDisposeNodeCache();
|
||||
}
|
||||
|
||||
disposeNodeManager.loadDisposeNodeFromDB();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -124,7 +121,5 @@ public class DisposeNodeManagerTest extends InitTestEnvironment {
|
|||
ErrorCode ret = disposeNodeManager.delDisposeDeviceByIp(v.getIpAddr());
|
||||
Assert.assertEquals(ret, ErrorCode.ERR_OK);
|
||||
});
|
||||
|
||||
disposeNodeManager.loadDisposeNodeFromDB();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue