Skip to content

Instantly share code, notes, and snippets.

object NeuroCon {
sealed trait StateName
object ReadyState extends StateName
object ProcState extends StateName
sealed trait StateData
case class ReadyData(net: ActorRef) extends StateData
case class ProcData(net: ActorRef, task: ActorRef, env: TaskEnv) extends StateData
}
@OlegYch
OlegYch / LearningSpecs2.scala
Created August 1, 2012 11:59 — forked from igstan/LearningSpecs2.scala
Partial verification of arguments passed to a mocked method in specs2.
import org.specs2.mock.Mockito
import org.specs2.mutable.SpecificationWithJUnit
import org.specs2.mock.mockito.MockitoFunctions
class LearningTest extends SpecificationWithJUnit {
trait Logger {
def error(a: String, e: Throwable)
}