Package de.berndsteindorff.junittca.model

Examples of de.berndsteindorff.junittca.model.ClassMethods


      project.runTests();
      assertEquals(1, project.getTestRuns().size());
      Run run1 = project.getTestRuns().get(0);
      assertEquals(1, run1.getClassMethods().size());
      ClassMethods cm1 = run1.getClassMethods().get(0);
      assertEquals(3, cm1.getTestMethods().size());
      loadChangedClass();

      project.runTests();
      assertEquals(2, project.getTestRuns().size());
      Run run2 = project.getTestRuns().get(0);
      assertEquals(1, run2.getClassMethods().size());
      ClassMethods cm2 = run2.getClassMethods().get(0);
      assertEquals(4, cm2.getTestMethods().size());
    } finally {
      loadOldClass();
    }

  }
View Full Code Here


    testMethods.add("gDummyTest");
    testMethods.add("zDummyTest");
    List<String> ignoredTestMethods = new ArrayList<String>(3);
    ignoredTestMethods.add("ignore1");
    ignoredTestMethods.add("ignore2");
    cm = new ClassMethods(Const.NAME_DUMMYTEST, Const.CLASSPATH
        + Const.DIRSEP, testMethods, ignoredTestMethods);
  }
View Full Code Here

    testMethods.add("gDummyTest");
    ArrayList<String> ignoredTestMethods = new ArrayList<String>(2);
    ignoredTestMethods.add("ignore2");
    ignoredTestMethods.add("ignore1");

    ClassMethods cm2 = new ClassMethods(Const.NAME_DUMMYTEST,
        Const.CLASSPATH + Const.DIRSEP, testMethods, ignoredTestMethods);

    ArrayList<String> expTestMethods = new ArrayList<String>(3);
    expTestMethods.add("dummyTest");
    expTestMethods.add("gDummyTest");
    expTestMethods.add("zDummyTest");
    ArrayList<String> expIgnoredTestMethods = new ArrayList<String>(2);
    expIgnoredTestMethods.add("ignore1");
    expIgnoredTestMethods.add("ignore2");

    assertEquals(3, cm2.getTestMethods().size());
    assertEquals(2, cm2.getIgnoredTestMethods().size());
    assertEquals(expTestMethods, cm2.getTestMethods());
    assertEquals(expIgnoredTestMethods, cm2.getIgnoredTestMethods());
  }
View Full Code Here

    testMethods.add("gDummyTest");
    ArrayList<String> ignoredTestMethods = new ArrayList<String>(2);
    ignoredTestMethods.add("ignore2");
    ignoredTestMethods.add("ignore1");

    ClassMethods cm2 = new ClassMethods(Const.NAME_DUMMYTEST,
        Const.CLASSPATH + Const.DIRSEP, testMethods, ignoredTestMethods);

    assertEquals(cm, cm2);
  }
View Full Code Here

    project.runTests();

    assertEquals(1, project.getTestRuns().size());
    assertEquals(1, project.getTestRuns().get(0).getClassMethods().size());

    ClassMethods classMethods = project.getTestRuns().get(0)
        .getClassMethods().get(0);
    assertEquals(NAME_DUMMYTEST, classMethods.getClassName());
    assertEquals(3, classMethods.getTestMethods().size());
    assertEquals(2, classMethods.getIgnoredTestMethods().size());
  }
View Full Code Here

    project.runTests();

    assertEquals(1, project.getTestRuns().size());
    assertEquals(1, project.getTestRuns().get(0).getClassMethods().size());

    ClassMethods classMethods = project.getTestRuns().get(0)
        .getClassMethods().get(0);
    assertEquals(NAME_DUMMYTEST, classMethods.getClassName());
    assertEquals("dummyTest", classMethods.getTestMethods().get(0));
    assertEquals("gDummyTest", classMethods.getTestMethods().get(1));
    assertEquals("zDummyTest", classMethods.getTestMethods().get(2));
    assertEquals("ignore1", classMethods.getIgnoredTestMethods().get(0));
    assertEquals("ignore2", classMethods.getIgnoredTestMethods().get(1));
  }
View Full Code Here

    testMethods.add("dummyTest");
    testMethods.add("gDummyTest");
    ArrayList<String> ignoredTestMethods = new ArrayList<String>(2);
    ignoredTestMethods.add("ignore2");
    ignoredTestMethods.add("ignore1");
    ClassMethods cm = new ClassMethods(NAME_DUMMYTEST, CLASSPATH + DIRSEP,
        testMethods, ignoredTestMethods);
    List<ClassMethods> cms = new ArrayList<ClassMethods>(1);
    cms.add(cm);
    try {
      runs.add(new Run(new Date(), result, cms));
View Full Code Here

TOP

Related Classes of de.berndsteindorff.junittca.model.ClassMethods

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.