Package org.camunda.bpm.container.impl.deployment.scanning

Examples of org.camunda.bpm.container.impl.deployment.scanning.ClassPathProcessApplicationScanner


    this.url = url;
  }
 
  @BeforeClass
  public static void setup() {
    scanner = new ClassPathProcessApplicationScanner();
  }
View Full Code Here


        new URL("file:src/test/resources/org/camunda/bpm/container/impl/jmx/deployment/util/ClassPathScannerTest.testScanClassPathWithFiles/"),
        new URL("file:src/test/resources/org/camunda/bpm/container/impl/jmx/deployment/util/ClassPathScannerTest.testScanClassPathWithFilesRecursive/"),
        new URL("file:src/test/resources/org/camunda/bpm/container/impl/jmx/deployment/util/ClassPathScannerTest.testScanClassPathRecursiveTwoDirectories.jar")                   
      });
   
    ClassPathProcessApplicationScanner scanner = new ClassPathProcessApplicationScanner();
   
    Map<String, byte[]> scanResult = new HashMap<String, byte[]>();
   
    scanner.scanPaResourceRootPath(classLoader, null, "classpath:directory/",scanResult);
   
    assertTrue("'testDeployProcessArchive.bpmn20.xml' not found", contains(scanResult, "testDeployProcessArchive.bpmn20.xml"));
    assertTrue("'testDeployProcessArchive.png' not found", contains(scanResult, "testDeployProcessArchive.png"));
    assertEquals(4, scanResult.size());
   
    scanResult.clear();
    scanner.scanPaResourceRootPath(classLoader, null, "directory/", scanResult);
   
    assertTrue("'testDeployProcessArchive.bpmn20.xml' not found", contains(scanResult, "testDeployProcessArchive.bpmn20.xml"));
    assertTrue("'testDeployProcessArchive.png' not found", contains(scanResult, "testDeployProcessArchive.png"));
    assertEquals(4, scanResult.size());

    scanResult.clear();
    scanner.scanPaResourceRootPath(classLoader, new URL("file:src/test/resources/org/camunda/bpm/container/impl/jmx/deployment/util/ClassPathScannerTest.testScanClassPathWithFilesRecursive/META-INF/processes.xml"), "pa:directory/", scanResult);

    assertTrue("'testDeployProcessArchive.bpmn20.xml' not found", contains(scanResult, "testDeployProcessArchive.bpmn20.xml"));
    assertTrue("'testDeployProcessArchive.png' not found", contains(scanResult, "testDeployProcessArchive.png"));
    assertEquals(2, scanResult.size()); // only finds two processes since a PA-local resource root path is provided
View Full Code Here

TOP

Related Classes of org.camunda.bpm.container.impl.deployment.scanning.ClassPathProcessApplicationScanner

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.