ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r942369 - in /incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler: ExecuterTest.java SchedulerTest.java
Date Sat, 08 May 2010 11:45:58 GMT
Author: marrs
Date: Sat May  8 11:45:58 2010
New Revision: 942369

URL: http://svn.apache.org/viewvc?rev=942369&view=rev
Log:
Added unit tests.

Modified:
    incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/ExecuterTest.java
    incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/SchedulerTest.java

Modified: incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/ExecuterTest.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/ExecuterTest.java?rev=942369&r1=942368&r2=942369&view=diff
==============================================================================
--- incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/ExecuterTest.java
(original)
+++ incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/ExecuterTest.java
Sat May  8 11:45:58 2010
@@ -39,7 +39,6 @@ public class ExecuterTest {
     public void testExecute() throws Exception {
         m_sem = new Semaphore(1);
         Executer executer = new Executer(new Runnable() {
-            @Override
             public void run() {
                 m_sem.release();
             }
@@ -54,7 +53,6 @@ public class ExecuterTest {
     public void testStop() throws Exception {
         m_sem = new Semaphore(2);
         Executer executer = new Executer(new Runnable() {
-            @Override
             public void run() {
                 try {
                     m_sem.tryAcquire(1, TimeUnit.SECONDS);

Modified: incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/SchedulerTest.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/SchedulerTest.java?rev=942369&r1=942368&r2=942369&view=diff
==============================================================================
--- incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/SchedulerTest.java
(original)
+++ incubator/ace/trunk/ace-scheduler/src/test/java/org/apache/ace/scheduler/SchedulerTest.java
Sat May  8 11:45:58 2010
@@ -65,7 +65,6 @@ public class SchedulerTest {
         props.put("local.mock.task1", "invalidValue");
         m_scheduler.updated(props);
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", null, false);
     }
@@ -74,7 +73,6 @@ public class SchedulerTest {
     public synchronized void testAddTask() throws Exception {
         assert m_scheduler.m_tasks.isEmpty();
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", null, false);
         assert m_scheduler.m_tasks.size() == 1 : "Exactly one task should be known to the
scheduler";
@@ -85,7 +83,6 @@ public class SchedulerTest {
     @Test(groups = { UNIT })
     public synchronized void testRemoveTask() throws Exception {
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", null, false);
         m_scheduler.removeRunnable("nonExistent");
@@ -101,7 +98,6 @@ public class SchedulerTest {
         m_scheduler.updated(props);
 
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", null, false);
 
@@ -118,7 +114,6 @@ public class SchedulerTest {
         assert !((SchedulerTask) m_scheduler.m_tasks.get("local.mock.task1")).isScheduled()
: "Since we have not provided a runnable for the scheduler, the tasks should not be scheduled.";
 
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", 2000l, true);
 
@@ -126,7 +121,6 @@ public class SchedulerTest {
         assert ((SchedulerTask) m_scheduler.m_tasks.get("local.mock.task1")).isScheduled()
: "Since we have now provided a runnable for the scheduler, the tasks should be scheduled.";
 
         m_scheduler.addRunnable("local.mock.task1", new Runnable() {
-            @Override
             public void run() {
             }}, "Dummy testing task", 2000l, false);
 



Mime
View raw message