[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-commits
Subject:    svn commit: r1208779 -
From:       chirino () apache ! org
Date:       2011-11-30 21:08:30
Message-ID: 20111130210830.E0E2F2388993 () eris ! apache ! org
[Download RAW message or body]

Author: chirino
Date: Wed Nov 30 21:08:30 2011
New Revision: 1208779

URL: http://svn.apache.org/viewvc?rev=1208779&view=rev
Log:
Adding a method to exit a within method.

Modified:
    activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala


Modified: activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala
                
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/test/ \
scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala?rev=1208779&r1=1208778&r2=1208779&view=diff
 ==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala \
                (original)
+++ activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala \
Wed Nov 30 21:08:30 2011 @@ -88,6 +88,8 @@ abstract class FunSuiteSupport extends F
 
   private class ShortCircuitFailure(msg:String) extends RuntimeException(msg)
 
+  def exit_within_with_failure[T](msg:String):T = throw new ShortCircuitFailure(msg)
+
   def within[T](timeout:Long, unit:TimeUnit)(func: => Unit ):Unit = {
     val start = System.currentTimeMillis
     var amount = unit.toMillis(timeout)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic