Package net.xeoh.plugins.testplugins.testannotations

Examples of net.xeoh.plugins.testplugins.testannotations.TestAnnotations


     *
     */
    @Test
    public void testGetPluginClassOfP() {
        final PluginInformation pi = this.pm.getPlugin(PluginInformation.class);
        final TestAnnotations ta = this.pm.getPlugin(TestAnnotations.class);

        Assert.assertNotNull(ta);
        Collection<String> information = pi.getInformation(Information.CAPABILITIES, ta);
        Assert.assertNotNull(information);
        Assert.assertTrue(information.size() > 0);
View Full Code Here


    public void testGetPluginClassOfP() {
        Assert.assertNotNull("Pluginmanager must be there", this.pm);

        this.pm.addPluginsFrom(new File("tests/plugins/").toURI(), new OptionReportAfter());

        final TestAnnotations p1 = this.pm.getPlugin(TestAnnotations.class);
        final PluginInformation p2 = this.pm.getPlugin(PluginInformation.class);

        $(p2.getInformation(Information.CLASSPATH_ORIGIN, p1)).string().print();
    }
View Full Code Here

     *
     */
    @Test
    public void testGetPluginClassOfP() {
        final PluginInformation pi = this.pm.getPlugin(PluginInformation.class);
        final TestAnnotations ta = this.pm.getPlugin(TestAnnotations.class);
    }
View Full Code Here

     */
    @Test
    public void testShutdown() {
        Assert.assertNotNull(this.pm);

        TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class);

        Assert.assertNotNull(plugin);
        this.pm.shutdown();
        plugin = this.pm.getPlugin(TestAnnotations.class);
        Assert.assertNull(plugin);
View Full Code Here

     */
    @Test
    public void testPluginInformation() {
        Assert.assertNotNull(this.pm);

        final TestAnnotations ta = this.pm.getPlugin(TestAnnotations.class);
        final PluginInformation pi = this.pm.getPlugin(PluginInformation.class);

        Assert.assertNotNull("TestAnnotaions must be there!", ta);
        Assert.assertNotNull("Plugin Information must be there", pi);

View Full Code Here

     */
    @Test
    public void testGetPluginClassOfP() {
        Assert.assertNotNull(this.pm);

        final TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class);

        Assert.assertNotNull(plugin);

        Assert.assertEquals(plugin.getInitStatus(), "INIT OK");
        Assert.assertEquals(plugin.getInjectionStatus(), "INJECTION OK");

        try {
            Thread.sleep(100);
        } catch (final InterruptedException e) {
            e.printStackTrace();
        }

        Assert.assertEquals(plugin.getThreadStatus(), "THREAD OK");
        Assert.assertEquals(plugin.getTimerStatus(), "TIMER OK");

    }
View Full Code Here

    /**
     *
     */
    @Test
    public void testAllInterfaces() {
        final TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class);

        System.out.println(plugin);

        Collection<Class<? extends Plugin>> allPluginClasses = getAllPluginClasses(plugin);
        for (Class<? extends Plugin> class1 : allPluginClasses) {
View Full Code Here

    //@Test
    public void testGetPluginClassOfPPluginSelectorOfP() {

        Assert.assertNotNull(this.pm);

        final TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class, new OptionPluginSelector<TestAnnotations>(new PluginSelector<TestAnnotations>() {

            public boolean selectPlugin(final TestAnnotations plugiN) {
                return false;
            }
View Full Code Here

     */
    @Test
    public void testAnnotations() {
        Assert.assertNotNull(this.pm);

        final TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class);

        Assert.assertNotNull(plugin);

        Assert.assertEquals(plugin.getInitStatus(), "INIT OK");
        Assert.assertEquals(plugin.getInjectionStatus(), "INJECTION OK");

        try {
            Thread.sleep(100);
        } catch (final InterruptedException e) {
            e.printStackTrace();
        }

        Assert.assertEquals(plugin.getThreadStatus(), "THREAD OK");
        Assert.assertEquals(plugin.getTimerStatus(), "TIMER OK");

    }
View Full Code Here

     */
    //@Test
    public void testGetPluginClassOfP() {
        Assert.assertNotNull(this.pm);

        final TestAnnotations plugin = this.pm.getPlugin(TestAnnotations.class);

        Assert.assertNotNull(plugin);

        Assert.assertEquals(plugin.getInitStatus(), "INIT OK");
        Assert.assertEquals(plugin.getInjectionStatus(), "INJECTION OK");

        try {
            Thread.sleep(100);
        } catch (final InterruptedException e) {
            e.printStackTrace();
        }

        Assert.assertEquals(plugin.getThreadStatus(), "THREAD OK");
        Assert.assertEquals(plugin.getTimerStatus(), "TIMER OK");
    }
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.testplugins.testannotations.TestAnnotations

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.