Package org.codehaus.aspectwerkz.regexp

Examples of org.codehaus.aspectwerkz.regexp.ConstructorPattern


        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "java.util.List", "int"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
    }

    public void testMatchParameterTypes9() {
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(java.lang.String[])");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[][]"}));
    }
View Full Code Here


        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[][]"}));
    }

    public void testMatchParameterTypes10() {
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(java.lang.String[][])");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[][]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[][][]"}));
    }
View Full Code Here

        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[][][]"}));
    }

    public void testMatchParameterTypes11() {
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(java.*.*[])");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String[]"}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.util.List[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.util.List[][]"}));
    }
View Full Code Here

        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.util.List[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.util.List[][]"}));
    }

    public void testMatchParameterTypes12() {
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(java.lang.String*)");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.StringBuffer"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "int"}));
    }
View Full Code Here

        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "int"}));
    }

    public void testMatchParameterTypes13() {
        //AW-91
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(..)");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[]"}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"int[]"}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[][]"}));
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"int[][]"}));
    }
View Full Code Here

        assertTrue(constructorPattern.matchParameterTypes(new String[]{"int[][]"}));
    }

    public void testMatchParameterType14() {
        //AW-91
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(java.lang.Integer*)");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[]"}));
    }
View Full Code Here

        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[]"}));
    }

    public void testMatchParameterType15() {
        //AW-91
        ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(Integer[])");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer"}));

        constructorPattern = Pattern.compileConstructorPattern("new(Integer[][])");
        assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[][]"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer"}));
        assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.Integer[]"}));
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.regexp.ConstructorPattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.