Search in sources :

Example 1 with ConditionDTO

use of org.simbasecurity.core.service.manager.dto.ConditionDTO in project simba-os by cegeka.

the class ConditionDTOAssemblerTest method testAssembleMultipleConditionsData.

@Test
public void testAssembleMultipleConditionsData() {
    Condition condition = createTimeCondition();
    Collection<ConditionDTO> policyDataList = ConditionDTOAssembler.assemble(Arrays.asList(condition));
    assertNotNull(policyDataList);
    assertEquals(1, policyDataList.size());
}
Also used : Condition(org.simbasecurity.core.domain.Condition) TimeCondition(org.simbasecurity.core.domain.condition.TimeCondition) ConditionDTO(org.simbasecurity.core.service.manager.dto.ConditionDTO) TimeConditionDTO(org.simbasecurity.core.service.manager.dto.TimeConditionDTO) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Condition (org.simbasecurity.core.domain.Condition)1 TimeCondition (org.simbasecurity.core.domain.condition.TimeCondition)1 ConditionDTO (org.simbasecurity.core.service.manager.dto.ConditionDTO)1 TimeConditionDTO (org.simbasecurity.core.service.manager.dto.TimeConditionDTO)1