Package org.drools.io.internal

Examples of org.drools.io.internal.InternalResource


        addKieModule( kModule );
        return kModule;
    }
   
    public KieModule getKieModule(Resource resource) {
        InternalResource res = (InternalResource) resource;
        try {
            // find kmodule.xml
            String urlPath = res.getURL().toExternalForm();
            if (res.isDirectory() ) {
                if ( !urlPath.endsWith( "/" ) ) {
                    urlPath = urlPath + "/";
                }
                urlPath = urlPath  + KieModuleModelImpl.KMODULE_JAR_PATH;
               
View Full Code Here


       
        Assert.assertNotNull(resourcesAdded);
       
        Assert.assertEquals(4, resourcesAdded.size());
       
        InternalResource resource1 = null;
        InternalResource resource2 = null;
        InternalResource resource3 = null;
        InternalResource secureResource = null;
       
        for (Resource r : resourcesAdded) {
            InternalResource resource = (InternalResource) r;
            if (resource.getName() != null && resource.getName().equals("resource1")){
                resource1 = resource;
            } else if (resource.getName() != null && resource.getName().equals("secureResource")){
                secureResource = resource;
            } else if (resource.getName() == null && resource.getDescription() == null){
                resource3 = resource;
            } else if (resource.getName() == null){
                resource2 = resource;
            }
        }
       
        Assert.assertNotNull(resource1);
View Full Code Here

TOP

Related Classes of org.drools.io.internal.InternalResource

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.