Package org.raptorjs.resources.packaging

Examples of org.raptorjs.resources.packaging.DependencyFactory


    assertEquals(js1.getContentType(), ContentType.JS);
  }
 
  @Test
  public void testManifestLoaderOld() throws JsonProcessingException, IOException {
    DependencyFactory includeFactory = new DependencyFactory();
    includeFactory.registerIncludeType("js", IncludeJSTest.class);
    PackageManifestJSONLoader loader = new PackageManifestJSONLoader(includeFactory);
    InputStream in = PackageManifestJSONLoaderTest.class.getResourceAsStream("/packaging/test/old-package.json");
    PackageManifest manifest = new PackageManifest();
    loader.load(manifest, in);
    this._testOldNew(manifest);
View Full Code Here


    this._testOldNew(manifest);
  }
 
  @Test
  public void testManifestLoaderNew1() throws JsonProcessingException, IOException {
    DependencyFactory includeFactory = new DependencyFactory();
    includeFactory.registerIncludeType("js", IncludeJSTest.class);
    PackageManifestJSONLoader loader = new PackageManifestJSONLoader(includeFactory);
    InputStream in = PackageManifestJSONLoaderTest.class.getResourceAsStream("/packaging/test/new1-package.json");
    PackageManifest manifest = new PackageManifest();
    loader.load(manifest, in);
    this._testOldNew(manifest);
View Full Code Here

    this._testOldNew(manifest);
  }
 
  @Test
  public void testTableWebPackage() throws JsonProcessingException, IOException {
    DependencyFactory includeFactory = new DependencyFactory();
    includeFactory.registerIncludeType("js", IncludeJSTest.class);
    includeFactory.registerIncludeType("4cc", Include4ccTest.class);
    includeFactory.registerIncludeType("less", IncludeLessTest.class);
    PackageManifestJSONLoader loader = new PackageManifestJSONLoader(includeFactory);
    InputStream in = PackageManifestJSONLoaderTest.class.getResourceAsStream("/packaging/test/tablet-web-package.json");
    Resource resource = new FileResource(".", null, new File("."));
    PackageManifest manifest = new PackageManifest();
    manifest.setResource(resource);
View Full Code Here

TOP

Related Classes of org.raptorjs.resources.packaging.DependencyFactory

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.