Package de.berndsteindorff.junittca.model

Examples of de.berndsteindorff.junittca.model.ProjectFileHandler


*/
public class DummyMain {

  public static void main(String[] args) {
    try {
      ProjectFileHandler pfh = new ProjectFileHandler();
      pfh.loadFile(new File("test666.yap"));
      pfh.newProject("Bla Projekt 1");
      pfh.getProject().addTestClass(
          new ClassFile(Const.NAME_DUMMYTEST, Const.CLASSPATH));
      pfh.runTests();
      pfh.runTests();
      pfh.closeDatabase();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here


    gui();
  }

  private static void gui() {
    IProjectModel model = new ProjectFileHandler();
    IProjectController controller = new ProjectController(model);
  }
View Full Code Here

        + "TcaMain.class");
    try {
      ClassFile cf = fcl.findClass(file);
      assertNull(cf);

      ProjectFileHandler pfh = new ProjectFileHandler();
      pfh.newProject("bla");
      pfh.getProject().setClasspath(CLASSPATH);
      pfh.addTestClasses(new File[] { file });
      fail("In "
          + CLASSPATH
          + "/de/berndsteindorff/junittca/TcaMain.class gibt es doch Tests.");
    } catch (Exception e) {
      assertEquals("Es wurden keine Test-Klassen hinzugefügt.\nDateien: "
View Full Code Here

  private ProjectFileHandler ph = null;

  @Before
  public void setUp() throws Exception {
    logger.setLevel(TcaMain.LOGLEVEL);
    ph = new ProjectFileHandler();
    ph.loadFile(new File(PATH_DB + i + ".yap"));
  }
View Full Code Here

   */
  @Test
  public void wrongFile() {
    try {
      ph.closeDatabase();
      ph = new ProjectFileHandler();
      ph.loadFile(new File("tt"));
      fail("Die Datei tt enthaelt anscheinend doch Projekte.");
    } catch (UnsupportedDataTypeException e) {
      assertEquals(
          "Die Datei /home/bernd/eclipse_workspace/junittca/tt ist keine Projekt-Datei.\nBitte wählen Sie eine korrekte Projekt-Datei oder geben einen neuen Namen ein.",
View Full Code Here

TOP

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

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.