Package com.google.jstestdriver.util

Examples of com.google.jstestdriver.util.ManifestLoader


    assertEquals(name, plugin.getName(null));
  }
  public void testGetNameFallBackToManifest() throws Exception {
    final String name = "foo";
    final Plugin plugin = new Plugin(null, "somePath", null, null);
    assertEquals(name, plugin.getName(new ManifestLoader(){
      @SuppressWarnings("unused")
      @Override
      public Manifest load(String jarPath) throws ManifestNotFound {
        return createManifest("jstd", "fpp", name);
      }
View Full Code Here


  }

  public void testGetModuleNameFromManifest() throws Exception {
    final String moduleName = "moduleName";
    final Plugin plugin = new Plugin("foo", "somePath", null, null);
    assertEquals(moduleName, plugin.getModuleName(new ManifestLoader(){
      @SuppressWarnings("unused")
      @Override
      public Manifest load(String jarPath) throws ManifestNotFound {
        return createManifest("jstd", moduleName, "foo");
      }
View Full Code Here

  }

  public void testGetModuleNameNotFoundFromManifest() throws Exception {
    final Plugin plugin = new Plugin("foo", "somePath", null, null);
    try {
      plugin.getModuleName(new ManifestLoader(){
        @Override
        public Manifest load(String jarPath) throws ManifestNotFound {
          throw new ManifestNotFound("");
        }
      });
View Full Code Here

   *   <li>running tests with coverage has its own special configuration</li>
   * </ul>
   * @param configuration
   */
  public static void wipeCoveragePlugin(@NotNull ParsedConfiguration configuration) {
    ManifestLoader manifestLoader = new ManifestLoader();
    Iterator<Plugin> iterator = configuration.getPlugins().iterator();
    while (iterator.hasNext()) {
      Plugin plugin = iterator.next();
      if (isCoveragePlugin(plugin, manifestLoader)) {
        iterator.remove();
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.util.ManifestLoader

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.