bitcoin-atm

bitcoin atm for pyc inc.

git clone https://9o.is/git/bitcoin-atm.git

MockComet.scala

(465B)


      1 package inc.pyc.chimera
      2 
      3 import System._
      4 import akka.actor._
      5 import akka.testkit._
      6 import net.liftweb.http.ScopedLiftActor
      7 import inc.pyc.lift_akka.LiftActorCompare
      8 
      9 class MockComet(system: ActorSystem) extends TestProbe(system) {
     10 
     11   val comet = new ScopedLiftActor with LiftActorCompare {
     12     override def lowPriority = {
     13       case event => ref ! event
     14     }
     15   }
     16   
     17   def subcribe(topics: String*) = topics map { 
     18     topic => client.subscribe(comet, topic)
     19   }
     20 }