Package com.intellij.javascript.testFramework

Examples of com.intellij.javascript.testFramework.Annotation


  }

  private static void handleBeginOfMarkedTestCase(MarkedJsTestFileStructure markedJsTestFileStructure, String fileText) {
    Matcher testCaseMatcher = TEST_CASE_PATTERN.matcher(fileText);
    while (testCaseMatcher.find()) {
      Annotation annotation = new Annotation("TestCase", testCaseMatcher.start(), testCaseMatcher.end(), testCaseMatcher.group(1));
      int id = MarkedTestCaseStructure.getIdAndValidate(annotation);
      MarkedTestCaseStructure markedTestCaseStructure = markedJsTestFileStructure.findById(id);
      if (markedTestCaseStructure != null) {
        throw new RuntimeException("Duplicated TestCase with id " + id + " found");
      }
View Full Code Here


  }

  private static void handleBeginOfMarkedTest(Map<String, MarkedTestStructure> markedTestStructureMap, String fileText) {
    Matcher testMatcher = TEST_PATTERN.matcher(fileText);
    while (testMatcher.find()) {
      Annotation annotation = new Annotation("Test", testMatcher.start(), testMatcher.end(), testMatcher.group(1));
      String testId = MarkedTestStructure.getIdAndValidate(annotation);
      MarkedTestStructure markedTestStructure = markedTestStructureMap.get(testId);
      if (markedTestStructure == null) {
        markedTestStructure = new MarkedTestStructure(annotation);
        markedTestStructureMap.put(testId, markedTestStructure);
View Full Code Here

  }

  private static void handleEndOfMarkedTest(Map<String, MarkedTestStructure> markedTestStructureMap, String fileText, JSFile jsFile) {
    Matcher endOfTestMatcher = TEST_END_PATTERN.matcher(fileText);
    while (endOfTestMatcher.find()) {
      Annotation annotation = new Annotation("TestEnd", endOfTestMatcher.start(), endOfTestMatcher.end(), endOfTestMatcher.group(1));
      String testId = annotation.getValue("id");
      MarkedTestStructure markedTestStructure = markedTestStructureMap.get(testId);
      if (markedTestStructure == null) {
        throw new RuntimeException("'" + endOfTestMatcher.group() + "' references undefined Test");
      }
      markedTestStructure.handleEndAnnotation(annotation, jsFile);
View Full Code Here

TOP

Related Classes of com.intellij.javascript.testFramework.Annotation

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.