Package hudson.maven

Examples of hudson.maven.MavenBuild$ProxyImpl2


            return m.getBuildByNumber(child.build);
        return null;
    }

    public SurefireReport getChildReport(Child child) {
        MavenBuild b = resolveChild(child);
        if(b==null) return null;
        return b.getAction(SurefireReport.class);
    }
View Full Code Here


        MavenModuleSetBuild b = m.scheduleBuild2(0).get();
        assertBuildStatus(Result.UNSTABLE, b);


        MavenBuild mb = b.getModuleLastBuilds().values().iterator().next();
        boolean foundFactory=false,foundSurefire=false;
        for (MavenProjectActionBuilder x : mb.getProjectActionBuilders()) {
            if (x instanceof FactoryImpl)
                foundFactory = true;
            if (x instanceof SurefireArchiver)
                foundSurefire = true;
        }
View Full Code Here

  MavenModuleSet m = createMavenProject("maven-render-test");
  m.setScm(new ExtractResourceSCM(m.getClass().getResource("maven-test-failure-findbugs.zip")));
  m.setGoals("clean test");

  MavenModuleSetBuild b = assertBuildStatus(Result.UNSTABLE, m.scheduleBuild2(0).get());
  MavenBuild modBuild = (MavenBuild)b.getModuleLastBuilds().get(m.getModule("test:test"));
  TestResult tr = modBuild.getAction(SurefireReport.class).getResult();
        assertEquals(1,tr.getFailedTests().size());
        CaseResult cr = tr.getFailedTests().get(0);
        assertEquals("test.AppTest",cr.getClassName());
        assertEquals("testApp",cr.getName());
  assertNotNull("Error details should not be null", cr.getErrorDetails());
View Full Code Here

    }
    return null;
  }

  public JooTestReport getChildReport(Child child) {
    MavenBuild b = resolveChild(child);
    if (b == null) {
      return null;
    }
    return b.getAction(JooTestReport.class);
  }
View Full Code Here

TOP

Related Classes of hudson.maven.MavenBuild$ProxyImpl2

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.