refactoring: removed extra line
This commit is contained in:
parent
cdaacb4ed0
commit
87e28c9fc8
@ -73,9 +73,9 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
|
|||||||
Mockito.reset(tbClusterService, auditLogService);
|
Mockito.reset(tbClusterService, auditLogService);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void testNotifyEntityOneManyTimeMsgToEdgeServiceNever(HasName entity, HasName originator,
|
protected void testNotifyEntityManyTimeMsgToEdgeServiceNever(HasName entity, HasName originator,
|
||||||
TenantId tenantId, CustomerId customerId, UserId userId, String userName,
|
TenantId tenantId, CustomerId customerId, UserId userId, String userName,
|
||||||
ActionType actionType, int cntTime, Object... additionalInfo) {
|
ActionType actionType, int cntTime, Object... additionalInfo) {
|
||||||
EntityId entityId = createEntityId_NULL_UUID(entity);
|
EntityId entityId = createEntityId_NULL_UUID(entity);
|
||||||
EntityId originatorId = createEntityId_NULL_UUID(originator);
|
EntityId originatorId = createEntityId_NULL_UUID(originator);
|
||||||
testNotificationMsgToEdgeServiceNever(entityId);
|
testNotificationMsgToEdgeServiceNever(entityId);
|
||||||
|
|||||||
@ -213,8 +213,6 @@ public abstract class BaseCustomerControllerTest extends AbstractControllerTest
|
|||||||
Assert.assertNotNull(foundCustomer);
|
Assert.assertNotNull(foundCustomer);
|
||||||
Assert.assertEquals(savedCustomer, foundCustomer);
|
Assert.assertEquals(savedCustomer, foundCustomer);
|
||||||
|
|
||||||
Mockito.reset(tbClusterService, auditLogService);
|
|
||||||
|
|
||||||
doDelete("/api/customer/" + savedCustomer.getId().getId().toString())
|
doDelete("/api/customer/" + savedCustomer.getId().getId().toString())
|
||||||
.andExpect(status().isOk());
|
.andExpect(status().isOk());
|
||||||
}
|
}
|
||||||
@ -275,6 +273,9 @@ public abstract class BaseCustomerControllerTest extends AbstractControllerTest
|
|||||||
TenantId tenantId = savedTenant.getId();
|
TenantId tenantId = savedTenant.getId();
|
||||||
|
|
||||||
int cntTime = 135;
|
int cntTime = 135;
|
||||||
|
|
||||||
|
Mockito.reset(tbClusterService, auditLogService);
|
||||||
|
|
||||||
List<ListenableFuture<Customer>> futures = new ArrayList<>(cntTime);
|
List<ListenableFuture<Customer>> futures = new ArrayList<>(cntTime);
|
||||||
for (int i = 0; i < cntTime; i++) {
|
for (int i = 0; i < cntTime; i++) {
|
||||||
Customer customer = new Customer();
|
Customer customer = new Customer();
|
||||||
@ -285,7 +286,7 @@ public abstract class BaseCustomerControllerTest extends AbstractControllerTest
|
|||||||
}
|
}
|
||||||
List<Customer> customers = Futures.allAsList(futures).get(TIMEOUT, TimeUnit.SECONDS);
|
List<Customer> customers = Futures.allAsList(futures).get(TIMEOUT, TimeUnit.SECONDS);
|
||||||
|
|
||||||
testNotifyEntityOneManyTimeMsgToEdgeServiceNever(new Customer(), new Customer(),
|
testNotifyEntityManyTimeMsgToEdgeServiceNever(new Customer(), new Customer(),
|
||||||
tenantId, tenantAdmin.getCustomerId(), tenantAdmin.getId(), tenantAdmin.getEmail(),
|
tenantId, tenantAdmin.getCustomerId(), tenantAdmin.getId(), tenantAdmin.getEmail(),
|
||||||
ActionType.ADDED, cntTime);
|
ActionType.ADDED, cntTime);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user