Package org.jvnet.hudson.test

Examples of org.jvnet.hudson.test.ExtractChangeLogSet


      // Now run a second build with the changes.
      m.setIncrementalBuild(true);
        buildAndAssertSuccess(m);
   
      MavenModuleSetBuild pBuild = m.getLastBuild();
      ExtractChangeLogSet changeSet = (ExtractChangeLogSet) pBuild.getChangeSet();
   
      assertFalse("ExtractChangeLogSet should not be empty.", changeSet.isEmptySet());

      for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
          String parentModuleName = modBuild.getParent().getModuleName().toString();
          if (parentModuleName.equals("org.jvnet.hudson.main.test.multimod:moduleA")) {
              assertEquals("moduleA should have Result.NOT_BUILT", Result.NOT_BUILT, modBuild.getResult());
View Full Code Here


        // Now run a second build with the changes.
        m.setIncrementalBuild(true);
        buildAndAssertSuccess(m);
       
        MavenModuleSetBuild pBuild = m.getLastBuild();
        ExtractChangeLogSet changeSet = (ExtractChangeLogSet) pBuild.getChangeSet();
       
        assertFalse("ExtractChangeLogSet should not be empty.", changeSet.isEmptySet());

        for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
            String parentModuleName = modBuild.getParent().getModuleName().toString();
            if (parentModuleName.equals("org.jvnet.hudson.main.test.multimod:moduleA")) {
                assertEquals("moduleA should have Result.NOT_BUILT", Result.NOT_BUILT, modBuild.getResult());
View Full Code Here

        // Now run a second build with the changes.
        assertBuildStatus(Result.UNSTABLE, m.scheduleBuild2(0).get());

      pBuild = m.getLastBuild();
      ExtractChangeLogSet changeSet = (ExtractChangeLogSet) pBuild.getChangeSet();

      assertFalse("ExtractChangeLogSet should not be empty.", changeSet.isEmptySet());
      // changelog contains a change for module B
      assertEquals("Parent build should have Result.UNSTABLE", Result.UNSTABLE, pBuild.getResult());
 
      for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
          String parentModuleName = modBuild.getParent().getModuleName().toString();
View Full Code Here

        // Now run a second build.
        assertBuildStatus(Result.UNSTABLE, m.scheduleBuild2(0).get());

        pBuild = m.getLastBuild();
        ExtractChangeLogSet changeSet = (ExtractChangeLogSet) pBuild.getChangeSet();

        assertFalse("ExtractChangeLogSet should not be empty.", changeSet.isEmptySet());
        // changelog contains a change for module B
        assertEquals("Parent build should have Result.UNSTABLE", Result.UNSTABLE, pBuild.getResult());
   
        for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
            String parentModuleName = modBuild.getParent().getModuleName().toString();
View Full Code Here

      // Now run a second build with the changes.
      m.setIncrementalBuild(true);
        buildAndAssertSuccess(m);
           
      MavenModuleSetBuild pBuild = m.getLastBuild();
      ExtractChangeLogSet changeSet = (ExtractChangeLogSet) pBuild.getChangeSet();
           
      assertFalse("ExtractChangeLogSet should not be empty.", changeSet.isEmptySet());
   
      for (MavenBuild modBuild : pBuild.getModuleLastBuilds().values()) {
          String parentModuleName = modBuild.getParent().getModuleName().toString();
          if (parentModuleName.equals("org.jvnet.hudson.main.test.multimod:moduleA")) {
              assertEquals("moduleA should have Result.NOT_BUILT", Result.NOT_BUILT, modBuild.getResult());
View Full Code Here

TOP

Related Classes of org.jvnet.hudson.test.ExtractChangeLogSet

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.