Search in sources :

Example 1 with RuleDTO

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

the class RuleDTOAssemblerTest method testAssembleMultipleRules.

@Test
public void testAssembleMultipleRules() {
    Rule resourceRule = createResourceRule();
    Rule urlRule = createUrlRule();
    Collection<RuleDTO> ruleDataList = RuleDTOAssembler.assemble(Arrays.asList(resourceRule, urlRule));
    assertNotNull(ruleDataList);
    assertEquals(2, ruleDataList.size());
}
Also used : URLRuleDTO(org.simbasecurity.core.service.manager.dto.URLRuleDTO) RuleDTO(org.simbasecurity.core.service.manager.dto.RuleDTO) ResourceRuleDTO(org.simbasecurity.core.service.manager.dto.ResourceRuleDTO) ResourceRule(org.simbasecurity.core.domain.ResourceRule) URLRule(org.simbasecurity.core.domain.URLRule) Rule(org.simbasecurity.core.domain.Rule) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ResourceRule (org.simbasecurity.core.domain.ResourceRule)1 Rule (org.simbasecurity.core.domain.Rule)1 URLRule (org.simbasecurity.core.domain.URLRule)1 ResourceRuleDTO (org.simbasecurity.core.service.manager.dto.ResourceRuleDTO)1 RuleDTO (org.simbasecurity.core.service.manager.dto.RuleDTO)1 URLRuleDTO (org.simbasecurity.core.service.manager.dto.URLRuleDTO)1