You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2007/05/16 17:26:59 UTC

[jira] Updated: (CONTINUUM-821) The Project.getBuildResults() method returns an empty list

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

Emmanuel Venisse updated CONTINUUM-821:
---------------------------------------

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

I think it's fixed. Need to be tested.

> 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-3
>
>
> 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