Examples of MyPlugin


Examples of com.mycila.testing.MyPlugin

    TestContext test;

    @BeforeMethod
    public void setup() {
        plugins = new PluginManager<TestPlugin>(TestPlugin.class);
        plugins.getCache().registerPlugin("myPlugin", new MyPlugin());
        test = new TestContext(plugins, this);
        MyPlugin.executed = false;
    }
View Full Code Here

Examples of com.mycila.testing.MyPlugin

        assertEquals(ti.getFieldsAnnotatedWith(Annot.class)[0].getName(), "field3");
    }

    @Test
    public void test_getFieldsAnnotatedWith_accessibility() throws Exception {
        TestInstance ti = new TestInstance(new MyPlugin());
        assertEquals(ti.getFieldsAnnotatedWith(Annot.class).length, 1);
    }
View Full Code Here

Examples of com.mycila.testing.MyPlugin

        ti.invoke(ti.getMethodsOfTypeAnnotatedWith(String.class, Annot.class)[0], 10, 20);
    }

    @Test
    public void test_get_set() throws Exception {
        TestInstance ti = new TestInstance(new MyPlugin());
        assertNull(ti.get(ti.getFieldsAnnotatedWith(Annot.class)[0]));
        ti.set(ti.getFieldsAnnotatedWith(Annot.class)[0], 10);
        assertEquals(ti.get(ti.getFieldsAnnotatedWith(Annot.class)[0]), 10);
    }
View Full Code Here

Examples of com.mycila.testing.core.MyPlugin

        assertEquals(ti.selectFields(fieldsAnnotatedBy(Annot.class)).get(0).getName(), "field3");
    }

    @Test
    public void test_getFieldsAnnotatedWith_accessibility() throws Exception {
        Introspector ti = new Introspector(new MyPlugin());
        assertEquals(ti.selectFields(fieldsAnnotatedBy(Annot.class)).size(), 1);
    }
View Full Code Here

Examples of com.mycila.testing.core.MyPlugin

        ti.invoke(ti.selectMethods(and(methodsReturning(String.class), methodsAnnotatedBy(Annot.class))).get(0), 10, 20);
    }

    @Test
    public void test_get_set() throws Exception {
        Introspector ti = new Introspector(new MyPlugin());
        assertNull(ti.get(ti.selectFields(fieldsAnnotatedBy(Annot.class)).get(0)));
        ti.set(ti.selectFields(fieldsAnnotatedBy(Annot.class)).get(0), 10);
        assertEquals(ti.get(ti.selectFields(fieldsAnnotatedBy(Annot.class)).get(0)), 10);
    }
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.