Package com.mycila.testing

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


        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

        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

TOP

Related Classes of com.mycila.testing.MyPlugin

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.