Package com.google.jstestdriver.idea.assertFramework.jstd

Examples of com.google.jstestdriver.idea.assertFramework.jstd.JstdTestFileStructureBuilder


  @NotNull
  public abstract String getMethodName();

  @Override
  public boolean isEnabled(@NotNull GenerateActionContext context) {
    JstdTestFileStructureBuilder builder = JstdTestFileStructureBuilder.getInstance();
    JstdTestFileStructure fileStructure = builder.fetchCachedTestFileStructure(context.getJsFile());
    Runnable generator = buildGenerator(context, fileStructure);
    return generator != null;
  }
View Full Code Here


    return false;
  }

  @Override
  public void actionPerformed(@NotNull GenerateActionContext context) {
    JstdTestFileStructureBuilder builder = JstdTestFileStructureBuilder.getInstance();
    JstdTestFileStructure fileStructure = builder.fetchCachedTestFileStructure(context.getJsFile());
    Runnable generator = buildGenerator(context, fileStructure);
    if (generator != null) {
      generator.run();
    }
  }
View Full Code Here

    return "JsTestDriver Test";
  }

  @Override
  public boolean isEnabled(@NotNull GenerateActionContext context) {
    JstdTestFileStructureBuilder builder = JstdTestFileStructureBuilder.getInstance();
    JstdTestFileStructure fileStructure = builder.fetchCachedTestFileStructure(context.getJsFile());
    if (fileStructure.getTestCaseCount() == 0) {
      return false;
    }
    Runnable testGenerator = buildGenerator(fileStructure, context);
    return testGenerator != null;
View Full Code Here

    return testGenerator != null;
  }

  @Override
  public void actionPerformed(@NotNull GenerateActionContext context) {
    JstdTestFileStructureBuilder builder = JstdTestFileStructureBuilder.getInstance();
    JstdTestFileStructure fileStructure = builder.fetchCachedTestFileStructure(context.getJsFile());
    Runnable testGenerator = buildGenerator(fileStructure, context);
    if (testGenerator != null) {
      testGenerator.run();
    }
  }
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.idea.assertFramework.jstd.JstdTestFileStructureBuilder

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.