[ 
http://jira.codehaus.org/browse/CONTINUUM-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesse McConnell updated CONTINUUM-821:
--------------------------------------

    Fix Version/s:     (was: 1.1-alpha-1)
                   1.1-alpha-2

> The Project.getBuildResults() method returns an empty list
> ----------------------------------------------------------
>
>                 Key: CONTINUUM-821
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-821
>             Project: Continuum
>          Issue Type: Bug
>          Components: XMLRPC Interface
>    Affects Versions: 1.0.3
>         Environment: JDK 1.5.0_07, Linux (Fedora Core 5)
>            Reporter: John Smart
>             Fix For: 1.1-alpha-2
>
>
> The Project.getBuildResults() method returns an empty list.  The unit test is 
> shown here:
>     @Test
>     public void testGetProjectBuildResults() throws XmlRpcException, 
> IOException {    
>               String url = "http://localhost:8000/continuum";;
>               ProjectsReader pr = new ProjectsReader( new URL( url ) );
>               
>               Project[] projects =  projects = pr.readProjects();
>               //
>               // Note: All the projects on the localhost server have builds
>               //
>               for ( Project project : projects){
>                       
>                  List<BuildResult> buildResults = project.getBuildResults();
>                  //
>                  // Builds have been defined
>                  //
>                  assertTrue(project.getBuildDefinitions().size() > 0);
>                  //
>                  // Builds have been done
>                  //
>                  assertTrue(project.getBuildNumber() > 0);
>                  //
>                  // We can access the build results
>                  //
>                  assertNotNull(buildResults);
>                  //
>                  // Test fails here:
>                  //
>                  assertTrue(buildResults.size() > 0);
>               }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to