Examples of classMatch()


Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzBySuperInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterface("com.jitlogic.zorka.core.test.spy.support.TestInterface2"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
        assertTrue(sms.classMatch(TestClass5.class, true));
    }
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzBySuperInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterface("com.jitlogic.zorka.core.test.spy.support.TestInterface2"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
        assertTrue(sms.classMatch(TestClass5.class, true));
    }
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    public void testSpyMatchClazzBySuperInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterface("com.jitlogic.zorka.core.test.spy.support.TestInterface2"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
        assertTrue(sms.classMatch(TestClass5.class, true));
    }

View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterface("com.jitlogic.zorka.core.test.spy.support.TestInterface2"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
        assertTrue(sms.classMatch(TestClass5.class, true));
    }


    @Test
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

                spy.byInterface("com.jitlogic.zorka.core.test.spy.support.TestInterface2"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
        assertTrue(sms.classMatch(TestClass5.class, true));
    }


    @Test
    public void testInstanceOfNonMatchingInterfaceCausesNPE() {
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzByClassAnnotation() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byClassAnnotation("com.jitlogic.zorka.core.test.spy.support.ClassAnnotation"));
        assertTrue(sms.classMatch(TestClass1.class, true));
        assertFalse(sms.classMatch(TestClass2.class, true));
    }


    @Test
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzByClassAnnotation() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byClassAnnotation("com.jitlogic.zorka.core.test.spy.support.ClassAnnotation"));
        assertTrue(sms.classMatch(TestClass1.class, true));
        assertFalse(sms.classMatch(TestClass2.class, true));
    }


    @Test
    public void testSpyMatchClazzByMethodAnnotation() {
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzByMethodAnnotation() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byMethodAnnotation("**", "com.jitlogic.zorka.core.test.spy.support.TestAnnotation"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
    }

    @Test
    public void testSpyMatchClazzByMethodSignatureWithBasicTypes() {
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzByMethodAnnotation() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byMethodAnnotation("**", "com.jitlogic.zorka.core.test.spy.support.TestAnnotation"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
    }

    @Test
    public void testSpyMatchClazzByMethodSignatureWithBasicTypes() {
        SpyMatcherSet sms = new SpyMatcherSet(
View Full Code Here

Examples of com.jitlogic.zorka.core.spy.SpyMatcherSet.classMatch()

    @Test
    public void testSpyMatchClazzByMethodSignatureWithBasicTypes() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byMethod(0, "**", "paramMethod*", "void", "boolean"));
        assertTrue(sms.classMatch(TestClass1.class, true));
        assertFalse(sms.classMatch(TestClass2.class, true));
    }

    @Test
    public void testSpyMatchClassByMethodSignatureWithClassTypes() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.