continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r497932 - in /maven/continuum/branches/id-refactor/continuum-core/src: main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java
Date Fri, 19 Jan 2007 20:05:46 GMT
Author: rinku
Date: Fri Jan 19 12:05:45 2007
New Revision: 497932

URL: http://svn.apache.org/viewvc?view=rev&rev=497932
Log:
o  fixes to Build queue.

Modified:
    maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java
    maven/continuum/branches/id-refactor/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java

Modified: maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java?view=diff&rev=497932&r1=497931&r2=497932
==============================================================================
--- maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java
(original)
+++ maven/continuum/branches/id-refactor/continuum-core/src/main/java/org/apache/maven/continuum/buildqueue/evaluator/BuildProjectTaskViabilityEvaluator.java
Fri Jan 19 12:05:45 2007
@@ -75,7 +75,7 @@
         {
             BuildProjectTask task = (BuildProjectTask) it.next();
 
-            Integer key = new Integer( task.getProjectId() );
+            Long key = new Long( task.getProjectId() );
 
             List projectTasks = (List) projects.get( key );
 

Modified: maven/continuum/branches/id-refactor/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java?view=diff&rev=497932&r1=497931&r2=497932
==============================================================================
--- maven/continuum/branches/id-refactor/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java
(original)
+++ maven/continuum/branches/id-refactor/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue/BuildQueueTest.java
Fri Jan 19 12:05:45 2007
@@ -47,7 +47,7 @@
     {
         Project project = addProject( getStore(), "Build Queue Project 1" );
 
-        int projectId = project.getId();
+        long projectId = project.getId();
 
         buildProject( projectId, ContinuumProjectState.TRIGGER_SCHEDULED );
 
@@ -70,9 +70,9 @@
     public void testTheQueueWithMultipleProjects()
         throws Exception
     {
-        int projectId1 = addProject( getStore(), "Build Queue Project 2" ).getId();
+        long projectId1 = addProject( getStore(), "Build Queue Project 2" ).getId();
 
-        int projectId2 = addProject( getStore(), "Build Queue Project 3" ).getId();
+        long projectId2 = addProject( getStore(), "Build Queue Project 3" ).getId();
 
         buildProject( projectId1, ContinuumProjectState.TRIGGER_SCHEDULED );
 
@@ -101,7 +101,7 @@
     {
         String name = "Build Queue Project 4";
 
-        int projectId = addProject( getStore(), name ).getId();
+        long projectId = addProject( getStore(), name ).getId();
 
         buildProject( projectId, ContinuumProjectState.TRIGGER_FORCED );
 
@@ -127,13 +127,13 @@
     //
     // ----------------------------------------------------------------------
 
-    private void buildProject( int projectId, int trigger )
+    private void buildProject( long projectId, int trigger )
         throws Exception
     {
         buildQueue.put( new BuildProjectTask( projectId, 0, trigger ) );
     }
 
-    private void assertNextBuildIs( int expectedProjectId )
+    private void assertNextBuildIs( long expectedProjectId )
         throws Exception
     {
         Task task = buildQueue.take();



Mime
View raw message