@ -128,11 +128,17 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
protected void testNotifyEntityAllOneTimeLogEntityActionEntityEqClass ( HasName entity , EntityId entityId , EntityId originatorId ,
TenantId tenantId , CustomerId customerId , UserId userId , String userName ,
ActionType actionType , ActionType actionTypeEdge , Object . . . additionalInfo ) {
testNotifyEntityAllOneTimeLogEntityActionEntityEqClass ( tenantId , entity , entityId , originatorId , tenantId , customerId , userId , userName , actionType , actionTypeEdge , additionalInfo ) ;
}
protected void testNotifyEntityAllOneTimeLogEntityActionEntityEqClass ( TenantId entityTenantId , HasName entity , EntityId entityId , EntityId originatorId ,
TenantId authTenantId , CustomerId customerId , UserId userId , String userName ,
ActionType actionType , ActionType actionTypeEdge , Object . . . additionalInfo ) {
int cntTime = 1 ;
testNotificationMsgToEdgeServiceTime ( entityId , tenantId , actionTypeEdge , cntTime ) ;
testLogEntityActionEntityEqClass ( entity , originatorId , tenantId , customerId , userId , userName , actionType , cntTime , additionalInfo ) ;
testNotificationMsgToEdgeServiceTime ( entityId , en tityT enantId, actionTypeEdge , cntTime ) ;
testLogEntityActionEntityEqClass ( entity , originatorId , au thT enantId, customerId , userId , userName , actionType , cntTime , additionalInfo ) ;
ArgumentMatcher < EntityId > matcherOriginatorId = argument - > argument . equals ( originatorId ) ;
testPushMsgToRuleEngineTime ( matcherOriginatorId , tenantId , entity , cntTime ) ;
testPushMsgToRuleEngineTime ( matcherOriginatorId , au thT enantId, entity , cntTime ) ;
Mockito . reset ( tbClusterService , auditLogService ) ;
}
@ -159,17 +165,26 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
TenantId tenantId , CustomerId customerId , UserId userId , String userName ,
ActionType actionType ,
int cntTime , int cntTimeEdge , int cntTimeRuleEngine , Object . . . additionalInfo ) {
testNotifyManyEntityManyTimeMsgToEdgeServiceEntityEqAny ( tenantId , entity , originator , tenantId , customerId , userId , userName , actionType ,
cntTime , cntTimeEdge , cntTimeRuleEngine , additionalInfo ) ;
}
protected void testNotifyManyEntityManyTimeMsgToEdgeServiceEntityEqAny ( TenantId entityTenantId , HasName entity , HasName originator ,
TenantId authTenantId , CustomerId customerId , UserId userId , String userName ,
ActionType actionType ,
int cntTime , int cntTimeEdge , int cntTimeRuleEngine , Object . . . additionalInfo ) {
EntityId originatorId = createEntityId_NULL_UUID ( originator ) ;
testSendNotificationMsgToEdgeServiceTimeEntityEqAny ( tenantId , actionType , cntTimeEdge ) ;
testSendNotificationMsgToEdgeServiceTimeEntityEqAny ( en tityT enantId, actionType , cntTimeEdge ) ;
ArgumentMatcher < HasName > matcherEntityClassEquals = argument - > argument . getClass ( ) . equals ( entity . getClass ( ) ) ;
ArgumentMatcher < EntityId > matcherOriginatorId = argument - > argument . getClass ( ) . equals ( originatorId . getClass ( ) ) ;
ArgumentMatcher < CustomerId > matcherCustomerId = customerId = = null ?
argument - > argument . getClass ( ) . equals ( CustomerId . class ) : argument - > argument . equals ( customerId ) ;
ArgumentMatcher < UserId > matcherUserId = userId = = null ?
argument - > argument . getClass ( ) . equals ( UserId . class ) : argument - > argument . equals ( userId ) ;
testLogEntityActionAdditionalInfo ( matcherEntityClassEquals , matcherOriginatorId , tenantId , matcherCustomerId , matcherUserId , userName , actionType , cntTime ,
testLogEntityActionAdditionalInfo ( matcherEntityClassEquals , matcherOriginatorId , au thT enantId, matcherCustomerId , matcherUserId , userName , actionType , cntTime ,
extractMatcherAdditionalInfoClass ( additionalInfo ) ) ;
testPushMsgToRuleEngineTime ( matcherOriginatorId , tenantId , entity , cntTimeRuleEngine ) ;
testPushMsgToRuleEngineTime ( matcherOriginatorId , authTenantId , entity , cntTimeRuleEngine ) ;
}
protected void testNotifyManyEntityManyTimeMsgToEdgeServiceEntityEqAnyAdditionalInfoAny ( HasName entity , HasName originator ,