/** * Tests the various getter methods in the virtual attribute rule class. * * @param rule The rule for which to perform the test. * @param appliesToEntry Indicates whether the provided rule applies to a minimal "o=test" entry. */ @Test(dataProvider = "testRules") public void testGetters(VirtualAttributeRule rule, boolean appliesToEntry) { assertEquals(rule.getAttributeType(), entryDNType); assertEquals( rule.getProvider().getClass().getName(), EntryDNVirtualAttributeProvider.class.getName()); assertNotNull(rule.getBaseDNs()); assertNotNull(rule.getGroupDNs()); assertNotNull(rule.getFilters()); assertNotNull(rule.getConflictBehavior()); }