test_class.file: Realization/backend/example/src/test/java/eu/bcvsolutions/idm/example/bulk/action/impl/IdentityLogExampleBulkActionTest.java
test_class.identifier: IdentityLogExampleBulkActionTest
test_class.superclass: extends AbstractBulkActionTest
test_case.body: @Test
  	public void processBulkAction() {
  		IdmBulkActionDto exampleAction = findBulkAction(IdmIdentity.class, IdentityLogExampleBulkAction.BULK_ACTION_NAME);
  		
  		assertNotNull(exampleAction);
  		Assert.assertEquals(NotificationLevel.INFO, exampleAction.getLevel());
  		
  		IdmIdentityDto identity = getHelper().createIdentity();
  		IdmIdentityDto identity2 = getHelper().createIdentity();
  		IdmIdentityDto identity3 = getHelper().createIdentity();
  		
  		exampleAction.setIdentifiers(Sets.newHashSet(identity.getId(), identity2.getId(), identity3.getId()));
  		
  		IdmBulkActionDto processAction = bulkActionManager.processAction(exampleAction);
  		assertNotNull(processAction.getLongRunningTaskId());
  		
  		IdmLongRunningTaskFilter context = new IdmLongRunningTaskFilter();
  		context.setIncludeItemCounts(true);
  		IdmLongRunningTaskDto longRunningTask = longRunningTaskService.get(processAction.getLongRunningTaskId(), context);
  
  		assertEquals(Long.valueOf(3), longRunningTask.getCount());
  		assertEquals(Long.valueOf(3), longRunningTask.getSuccessItemCount());
  		assertEquals(Long.valueOf(0), longRunningTask.getFailedItemCount());
  		assertEquals(Long.valueOf(0), longRunningTask.getWarningItemCount());
  
  		List<IdmProcessedTaskItemDto> items = getItemsForLrt(longRunningTask);
  		assertEquals(3, items.size());
  
  		boolean identitySuccess = false;
  		boolean identitySuccess2 = false;
  		boolean identitySuccess3 = false;
  		for (IdmProcessedTaskItemDto item : items) {
  			if (item.getOperationResult().getState() != OperationState.EXECUTED) {
  				fail("Identity " + item.getReferencedEntityId() + ", failed.");
  			}
  			if (item.getReferencedEntityId().equals(identity.getId())) {
  				identitySuccess = true;
  			}
  			if (item.getReferencedEntityId().equals(identity2.getId())) {
  				identitySuccess2 = true;
  			}
  			if (item.getReferencedEntityId().equals(identity3.getId())) {
  				identitySuccess3 = true;
  			}
  		}
  		assertTrue(identitySuccess);
  		assertTrue(identitySuccess2);
  		assertTrue(identitySuccess3);
  	}
test_case.class_method_signature: IdentityLogExampleBulkActionTest.processBulkAction()
test_case.full_signature: @Test public void processBulkAction()
test_case.identifier: processBulkAction
test_case.invocations: findBulkAction assertNotNull assertEquals getLevel createIdentity getHelper createIdentity getHelper createIdentity getHelper setIdentifiers newHashSet getId getId getId processAction assertNotNull getLongRunningTaskId setIncludeItemCounts get getLongRunningTaskId assertEquals valueOf getCount assertEquals valueOf getSuccessItemCount assertEquals valueOf getFailedItemCount assertEquals valueOf getWarningItemCount getItemsForLrt assertEquals size getState getOperationResult fail getReferencedEntityId equals getReferencedEntityId getId equals getReferencedEntityId getId equals getReferencedEntityId getId assertTrue assertTrue assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void processBulkAction()
focal_class.declarator: LOG = org.slf4j.LoggerFactory.getLogger(IdentityLogExampleBulkAction.class)
focal_class.modifier: private static final
focal_class.original_string: private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(IdentityLogExampleBulkAction.class);
focal_class.type: org.slf4j.Logger
focal_class.var_name: LOG
focal_class.declarator: BULK_ACTION_NAME = "identity-log-example-bulk-action"
focal_class.modifier: public static final
focal_class.original_string: public static final String BULK_ACTION_NAME = "identity-log-example-bulk-action";
focal_class.type: String
focal_class.var_name: BULK_ACTION_NAME
focal_class.declarator: EXAMPLE_TEXT_CODE = "exampleText"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXAMPLE_TEXT_CODE = "exampleText";
focal_class.type: String
focal_class.var_name: EXAMPLE_TEXT_CODE
focal_class.declarator: EXAMPLE_WARNING_CODE = "exampleWarning"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXAMPLE_WARNING_CODE = "exampleWarning";
focal_class.type: String
focal_class.var_name: EXAMPLE_WARNING_CODE
focal_class.declarator: EXAMPLE_SLEEP_CODE = "sleep"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXAMPLE_SLEEP_CODE = "sleep";
focal_class.type: String
focal_class.var_name: EXAMPLE_SLEEP_CODE
focal_class.declarator: EXAMPLE_FAIL_EVERY_N = "failEveryN"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXAMPLE_FAIL_EVERY_N = "failEveryN";
focal_class.type: String
focal_class.var_name: EXAMPLE_FAIL_EVERY_N
focal_class.declarator: failCount = 1
focal_class.modifier: private
focal_class.original_string: private int failCount = 1;
focal_class.type: int
focal_class.var_name: failCount
focal_class.declarator: identityService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmIdentityService identityService;
focal_class.type: IdmIdentityService
focal_class.var_name: identityService
focal_class.file: Realization/backend/example/src/main/java/eu/bcvsolutions/idm/example/bulk/action/impl/IdentityLogExampleBulkAction.java
focal_class.identifier: IdentityLogExampleBulkAction
focal_class.class_method_signature: IdentityLogExampleBulkAction.processDto(IdmIdentityDto dto)
focal_class.full_signature: @Override protected OperationResult processDto(IdmIdentityDto dto)
focal_class.identifier: processDto
focal_class.modifiers: @Override protected
focal_class.parameters: (IdmIdentityDto dto)
focal_class.return: OperationResult
focal_class.signature: OperationResult processDto(IdmIdentityDto dto)
focal_class.class_method_signature: IdentityLogExampleBulkAction.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getFormAttributes()
focal_class.full_signature: @Override public List<IdmFormAttributeDto> getFormAttributes()
focal_class.identifier: getFormAttributes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<IdmFormAttributeDto>
focal_class.signature: List<IdmFormAttributeDto> getFormAttributes()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getTextFieldAttribute()
focal_class.full_signature: protected IdmFormAttributeDto getTextFieldAttribute()
focal_class.identifier: getTextFieldAttribute
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IdmFormAttributeDto
focal_class.signature: IdmFormAttributeDto getTextFieldAttribute()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getFailEveryNAttribute()
focal_class.full_signature: protected IdmFormAttributeDto getFailEveryNAttribute()
focal_class.identifier: getFailEveryNAttribute
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IdmFormAttributeDto
focal_class.signature: IdmFormAttributeDto getFailEveryNAttribute()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getWarningAttribute()
focal_class.full_signature: protected IdmFormAttributeDto getWarningAttribute()
focal_class.identifier: getWarningAttribute
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IdmFormAttributeDto
focal_class.signature: IdmFormAttributeDto getWarningAttribute()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getSleepAttribute()
focal_class.full_signature: protected IdmFormAttributeDto getSleepAttribute()
focal_class.identifier: getSleepAttribute
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: IdmFormAttributeDto
focal_class.signature: IdmFormAttributeDto getSleepAttribute()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getTextField()
focal_class.full_signature: private String getTextField()
focal_class.identifier: getTextField
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTextField()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getSleep()
focal_class.full_signature: private Integer getSleep()
focal_class.identifier: getSleep
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getSleep()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getFailEveryN()
focal_class.full_signature: private Integer getFailEveryN()
focal_class.identifier: getFailEveryN
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getFailEveryN()
focal_class.class_method_signature: IdentityLogExampleBulkAction.isWarning()
focal_class.full_signature: private boolean isWarning()
focal_class.identifier: isWarning
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isWarning()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getAuthoritiesForEntity()
focal_class.full_signature: @Override protected List<String> getAuthoritiesForEntity()
focal_class.identifier: getAuthoritiesForEntity
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAuthoritiesForEntity()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getOrder()
focal_class.full_signature: @Override public int getOrder()
focal_class.identifier: getOrder
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOrder()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getLevel()
focal_class.full_signature: @Override public NotificationLevel getLevel()
focal_class.identifier: getLevel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: NotificationLevel
focal_class.signature: NotificationLevel getLevel()
focal_class.class_method_signature: IdentityLogExampleBulkAction.getService()
focal_class.full_signature: @Override public ReadWriteDtoService<IdmIdentityDto, IdmIdentityFilter> getService()
focal_class.identifier: getService
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ReadWriteDtoService<IdmIdentityDto, IdmIdentityFilter>
focal_class.signature: ReadWriteDtoService<IdmIdentityDto, IdmIdentityFilter> getService()
focal_class.class_method_signature: IdentityLogExampleBulkAction.isRecoverable()
focal_class.full_signature: @Override public boolean isRecoverable()
focal_class.identifier: isRecoverable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRecoverable()
focal_class.superclass: extends AbstractBulkAction<IdmIdentityDto, IdmIdentityFilter>
focal_method.body: @Override
  	public NotificationLevel getLevel() {
  		return NotificationLevel.INFO;
  	}
focal_method.class_method_signature: IdentityLogExampleBulkAction.getLevel()
focal_method.full_signature: @Override public NotificationLevel getLevel()
focal_method.identifier: getLevel
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: NotificationLevel
focal_method.signature: NotificationLevel getLevel()