activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1208779 - /activemq/activemq-apollo/trunk/apollo-util/src/test/scala/org/apache/activemq/apollo/util/FunSuiteSupport.scala
Date Wed, 30 Nov 2011 21:08:30 GMT
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)



Mime
View raw message