Package hudson.maven

Examples of hudson.maven.AbstractMavenProject


   
    HealthReport healthMock = mock(HealthReport.class);
    when(healthMock.getDescription()).thenReturn("Fine");
    when(healthMock.getScore()).thenReturn(100);
   
    AbstractMavenProject job = mock(AbstractMavenProject.class);
    ItemGroup parent = mock(ItemGroup.class);
    when(parent.getFullDisplayName()).thenReturn("");
    when(job.getParent()).thenReturn(parent);
        when(job.getFullDisplayName()).thenReturn("fsProject");
        when(job.getLastBuild()).thenReturn(build);
        when(job.getBuildHealth()).thenReturn(healthMock);
   
    HealthCommand cmd = new HealthCommand();
    String reply = cmd.getMessageForJob(job).toString();
   
    assertFalse(reply.contains(AbstractMultipleJobCommand.UNKNOWN_JOB_STR));
View Full Code Here


        HealthReport healthMock = mock(HealthReport.class);
        when(healthMock.getDescription()).thenReturn("Cloudy");
        when(healthMock.getScore()).thenReturn(0);

        AbstractMavenProject job = mock(AbstractMavenProject.class);
    ItemGroup parent = mock(ItemGroup.class);
    when(parent.getFullDisplayName()).thenReturn("");
    when(job.getParent()).thenReturn(parent);
        when(job.getFullDisplayName()).thenReturn("fsProject");
        when(job.getLastBuild()).thenReturn(build);
        when(job.getBuildHealth()).thenReturn(healthMock);
     
    HealthCommand cmd = new HealthCommand();
    {
      String reply = cmd.getMessageForJob(job).toString();
   
View Full Code Here

TOP

Related Classes of hudson.maven.AbstractMavenProject

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.