mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

dugan
19.08.2006 f678d18a949257208370a3467596058082cb0ffd
Fix format of file to fit checkstyle
1 files modified
19 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/types/TestAddressMask.java 19 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/types/TestAddressMask.java
@@ -98,7 +98,6 @@
     } catch (ConfigException e) {
         throw e;
     } catch (Exception e) {
         //MPD FIX this
         System.out.println(
                 "Invalid mask  <" + mask + "> threw wrong exception type.");
         throw e;
@@ -213,14 +212,16 @@
 }
 @Test(dataProvider = "matchWCRules")
 public void testWildCardMatch(String[] rules, String[] addrs, String[]hostNames) {
 public void testWildCardMatch(String[] rules, String[] addrs,
         String[]hostNames) {
     boolean ret=true;
     ret=match(rules,addrs,hostNames);
     assertTrue(ret);
 }
 @Test(dataProvider = "noMatchRules")
 public void testNoMatch(String[] rules, String[] addrs, String[] hostNames) {
 public void testNoMatch(String[] rules, String[] addrs,
         String[] hostNames) {
     boolean ret=false;
     ret=match(rules,addrs,hostNames);
     assertFalse(ret);
@@ -233,7 +234,8 @@
         assertEquals(rule, m.toString());
     } catch (ConfigException ce) {
         throw new RuntimeException(
                 "Invalid mask <" + rule + "> data should be all valid for this test");
                 "Invalid mask <" + rule +
                 "> all data should be valid for this test");
     }
 }
 
@@ -251,7 +253,8 @@
     return addr;
 }
 
 private boolean match(String[] rules, String[] addrs, String[]hostNames) {
 private boolean match(String[] rules, String[] addrs,
         String[]hostNames) {
     boolean ret=true;
     int i=0;
     
@@ -262,10 +265,12 @@
         }
     } catch (ConfigException ce) {
         throw new RuntimeException(
                 "Invalid mask <" + rules[i] + "> all data must be valid for this test");
                 "Invalid mask <" + rules[i] +
                 "> all data must be valid for this test");
     }
     for(int j =0; j < addrs.length; j++) {
         if(!AddressMask.maskListContains(getAddress(addrs[j]),hostNames[j],m)) {
         if(!AddressMask.maskListContains(getAddress(addrs[j]),
                 hostNames[j],m)) {
             ret=false;
             break;
         }