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

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/test/java/org/opends/server/authorization/dseecompat/IPTestCase.java
@@ -181,8 +181,9 @@
         InetAddress addr=InetAddress.getByName(ipStr);
         EnumEvalResult res=ip.evaluate(addr);
         if(res != EnumEvalResult.TRUE)
             throw new RuntimeException ("Addr: " + ipStr +
                     "expr: " + mixed);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + mixed);
        }
     }
@@ -198,8 +199,9 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                    "expr: " + ip4compat);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip4compat);
        }
    }
    /**
@@ -215,13 +217,15 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + ip6ExprCidr);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprCidr);
        }
        IP ip1=(IP) IP.decode(ip6ExprCidrB, EnumBindRuleType.EQUAL_BINDRULE_TYPE);
        EnumEvalResult res1=ip1.evaluate(addr);
        if(res1 != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + ip6ExprCidrB);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprCidrB);
        }
    }
    /**
@@ -238,13 +242,15 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + ip6Expr);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6Expr);
        }
        IP ip1=(IP) IP.decode(ip6ExprC, EnumBindRuleType.EQUAL_BINDRULE_TYPE);
        EnumEvalResult res1=ip1.evaluate(addr);
        if(res1 != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + ip6ExprC);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprC);
        }
    }
    /**
@@ -260,14 +266,16 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + cidr);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + cidr);
        }
        IP ip1=(IP) IP.decode(cidrWc, EnumBindRuleType.EQUAL_BINDRULE_TYPE);
        EnumEvalResult res1=ip.evaluate(addr);
        if(res1 != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + cidrWc);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + cidrWc);
        }
    }
    /**
@@ -283,14 +291,16 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + netmaskWc);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + netmaskWc);
        }
        IP ip1 = (IP) IP.decode(netmaskWcOverRide,
                EnumBindRuleType.EQUAL_BINDRULE_TYPE);
        EnumEvalResult res1=ip1.evaluate(addr);
        if(res1 != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + netmaskWc);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + netmaskWc);
        }
    }
    /**
@@ -306,13 +316,15 @@
        InetAddress addr=InetAddress.getByName(ipStr);
        EnumEvalResult res=ip.evaluate(addr);
        if(res != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr: " + ipExpr);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr: " + ipExpr);
        }
        IP ipWc=(IP) IP.decode(ipExprWc, EnumBindRuleType.EQUAL_BINDRULE_TYPE);
        EnumEvalResult resWc=ipWc.evaluate(addr);
        if(resWc != EnumEvalResult.TRUE)
            throw new RuntimeException ("Addr: " + ipStr +
                                        "expr:" + ipExprWc);
        {
          throw new RuntimeException ("Addr: " + ipStr + "expr:" + ipExprWc);
        }
    }
    /**