Fixed comments / javadocs.
| | |
| | | /** |
| | | * Superior test data provider. |
| | | * |
| | | * @return The array of superior and subordindate DN Strings. |
| | | * @return The array of superior and subordinate DN Strings. |
| | | */ |
| | | @DataProvider(name = "createSuperiorTestData") |
| | | public Object[][] createSuperiorTestData() { |
| | |
| | | assertEquals(dn.isSubordinateOrEqualTo(other), e, sub + " isSubordinateOf " + base); |
| | | } |
| | | |
| | | /** |
| | | * Tests the supeiror dns. |
| | | */ |
| | | /** Tests the superior dns. */ |
| | | @Test(dataProvider = "createSuperiorTestData") |
| | | public void testSuperiorDN(final String base, final String sub, final boolean e) |
| | | throws Exception { |
| | |
| | | { "this is a string", "string*a*is*this", ConditionResult.FALSE }, |
| | | { "this is a string", "*\\00", ConditionResult.FALSE }, |
| | | { "this is a string", gen() + "*", ConditionResult.FALSE }, |
| | | // initial longer than value |
| | | // initial substring longer than value |
| | | { "tt", "this*", ConditionResult.FALSE }, |
| | | // final substring longer than value |
| | | { "tt", "*this", ConditionResult.FALSE }, |
| | | }; |
| | | } |