maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Smart (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (CONTINUUM-821) The Project.getBuildResults() method returns an empty list
Date Thu, 17 Aug 2006 18:38:48 GMT
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


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

        

Mime
View raw message