Examples of KContainerBean


Examples of org.kie.spring.beans.annotations.KContainerBean

        assertNotNull(context);
    }

    @Test
    public void testKContainer() throws Exception {
        KContainerBean sampleBean = (KContainerBean) context.getBean("sampleBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieContainer() );
        assertTrue(sampleBean.getKieContainer() instanceof KieContainer );
        ReleaseId releaseId = sampleBean.getKieContainer().getReleaseId();
        assertTrue("kie-spring".equalsIgnoreCase(releaseId.getArtifactId()));
    }
View Full Code Here

Examples of org.kie.spring.beans.annotations.KContainerBean

        assertTrue("kie-spring".equalsIgnoreCase(releaseId.getArtifactId()));
    }

    @Test
    public void testSetterKContainer() throws Exception {
        KContainerBean sampleBean = (KContainerBean) context.getBean("sampleBean");
        assertNotNull(sampleBean);
        assertNotNull(sampleBean.getKieContainer2());
        assertTrue(sampleBean.getKieContainer2() instanceof KieContainer);
        ReleaseId releaseId = sampleBean.getKieContainer2().getReleaseId();
        assertTrue("kie-spring".equalsIgnoreCase(releaseId.getArtifactId()));
    }
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.