Examples of BranchBuilder


Examples of org.eclipse.jgit.junit.TestRepository.BranchBuilder

    assertEquals(0, stats.numberOfPackFiles);
  }

  @Theory
  public void testPack2Commits(boolean aggressive) throws Exception {
    BranchBuilder bb = tr.branch("refs/heads/master");
    bb.commit().add("A", "A").add("B", "B").create();
    bb.commit().add("A", "A2").add("B", "B2").create();

    stats = gc.getStatistics();
    assertEquals(8, stats.numberOfLooseObjects);
    assertEquals(0, stats.numberOfPackedObjects);
    configureGc(gc, aggressive);
View Full Code Here

Examples of org.eclipse.jgit.junit.TestRepository.BranchBuilder

    assertEquals(1, stats.numberOfPackFiles);
  }

  @Theory
  public void testPackCommitsAndLooseOne(boolean aggressive) throws Exception {
    BranchBuilder bb = tr.branch("refs/heads/master");
    RevCommit first = bb.commit().add("A", "A").add("B", "B").create();
    bb.commit().add("A", "A2").add("B", "B2").create();
    tr.update("refs/heads/master", first);

    stats = gc.getStatistics();
    assertEquals(8, stats.numberOfLooseObjects);
    assertEquals(0, stats.numberOfPackedObjects);
View Full Code Here

Examples of testGenerator.antlr.branchParser.BranchBuilder

        File classFile = new File("./test/testGenerator/jUnitCreator/TestClass.java");
        assertEquals(true, classFile.exists());

        //Parse the class file
        control.setTestConf(TestConfSetting.CODE_LOCATION, classFile.getAbsolutePath());
        BranchBuilder instance = new BranchBuilder(guiControl, control);
        instance.interpretSource();
        String result = control.generateJUnitTest(true);

        //FileSaver saver = new FileSaver(result, new File("./test/testGenerator/jUnitCreator/TestClassTst.txt"));

        //Read oracle file
View Full Code Here

Examples of testGenerator.antlr.branchParser.BranchBuilder

     * Parses the source file that has been specified to figure out all the
     * branches thought the code.
     */
    public void interpretSource()
    {
        BranchBuilder builder = new BranchBuilder(guiController, this);
        builder.interpretSource();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.