Examples of classMatch()


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

    @Test
    public void testClassExclusionWithOnlySomeMethod() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byMethod("com.jitlogic.zorka.core.**", "mapRow").exclude(),
                spy.byClass("**"));
        assertTrue(sms.classMatch("com.jitlogic.zorka.core.AgentConfig"));
        assertTrue(sms.classMatch(AgentConfig.class, false));
    }

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

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

    public void testClassExclusionWithOnlySomeMethod() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byMethod("com.jitlogic.zorka.core.**", "mapRow").exclude(),
                spy.byClass("**"));
        assertTrue(sms.classMatch("com.jitlogic.zorka.core.AgentConfig"));
        assertTrue(sms.classMatch(AgentConfig.class, false));
    }

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

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

    @Test
    public void testClassExclusionWithAllMethodsInClassExcluded() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byClass("com.jitlogic.zorka.core.**").exclude(),
                spy.byClass("**"));
        assertFalse(sms.classMatch("com.jitlogic.zorka.core.AgentConfig"));
        assertFalse(sms.classMatch(AgentConfig.class, false));
    }


    @Test
View Full Code Here

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

    public void testClassExclusionWithAllMethodsInClassExcluded() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byClass("com.jitlogic.zorka.core.**").exclude(),
                spy.byClass("**"));
        assertFalse(sms.classMatch("com.jitlogic.zorka.core.AgentConfig"));
        assertFalse(sms.classMatch(AgentConfig.class, false));
    }


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

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

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


    @Test
View Full Code Here

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

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


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

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

    @Test
    public void testSpyMatchClazzByInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterfaceAndMethod("com.jitlogic.zorka.core.test.spy.support.TestInterface1", "*"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
    }

View Full Code Here

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

    @Test
    public void testSpyMatchClazzByInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterfaceAndMethod("com.jitlogic.zorka.core.test.spy.support.TestInterface1", "*"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
    }


View Full Code Here

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

    public void testSpyMatchClazzByInterface() {
        SpyMatcherSet sms = new SpyMatcherSet(
                spy.byInterfaceAndMethod("com.jitlogic.zorka.core.test.spy.support.TestInterface1", "*"));
        assertFalse(sms.classMatch(TestClass1.class, true));
        assertTrue(sms.classMatch(TestClass2.class, true));
        assertFalse(sms.classMatch(TestClass3.class, true));
        assertTrue(sms.classMatch(TestClass4.class, true));
    }


    @Test
View Full Code Here

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

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


    @Test
    public void testSpyMatchClazzBySuperInterface() {
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.