Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package cisco
    Definition Classes
    com
  • package streambed

    The base package of the Streambed library.

    The base package of the Streambed library. Of note is the com.cisco.streambed.Application suite of types. These types conveniently establish a streambed environment for an application.

    Sample usage from Java:

    /**
     * Bootstraps our application and handles signals
     */
    public class MyServerEntryPoints {
        private static ApplicationProcess applicationProcess = null;
    
        public static void main(String[] args) {
            applicationProcess = new ApplicationProcess(new MyServer());
            applicationProcess.main(args);
        }
    
        public static void trap(int signal) {
          if (applicationProcess != null) {
                applicationProcess.trap(signal);
            }
        }
    }

    ...with MyServer being declared as:

    public class MyServer extends Application {
        @Override
        public void main(String[] args, ApplicationContext context) {
          ..
        }
    }

    The equivalent in Scala:

    object MyServerEntryPoints {
      private lazy val applicationProcess = ApplicationProcess(MyServer)
    
      def main(args: Array[String]): Unit =
        applicationProcess.main(args)
    
      def trap(signal: Int): Unit =
        applicationProcess.trap(signal)
    }

    ...with MyServer being declared as:

    object MyServer extends Application {
      override def main(args: Array[String], applicationContext: ApplicationContext): Unit = {
        ..
      }
    }

    The essential idea is that a regular JVM entry point (MyServerEntryPoints), establishes a com.cisco.streambed.ApplicationProcess of a class named MyServer. The trap method is used by Landlord for whenever an operating systemm signal is sent to the process. My extending com.cisco.streambed.Application, a com.cisco.streambed.ApplicationContext is provided by Streambed, containing almost all of what an application will require in order to startup (an actor system, metrics, logging...). The resources provided within the context are also automatically released on exit.

    Definition Classes
    cisco
  • package testkit

    Various utilities to support streambed based tests

    Various utilities to support streambed based tests

    Definition Classes
    streambed
  • package durablequeue

    An in-memory durable queue to facilitate tests.

    An in-memory durable queue to facilitate tests.

    Sample usage within a Java test:

    DurableQueue durableQueue = InMemoryQueue$.MODULE$.queue(mat, system);

    Sample usage within a Scala test:

    val durableQueue = InMemoryQueue.queue()
    Definition Classes
    testkit
  • DurableQueueTestSuite
  • InMemoryQueue
c

com.cisco.streambed.testkit.durablequeue

DurableQueueTestSuite

abstract class DurableQueueTestSuite extends TestSuite with TestKitBase

Defines a reusable test suite that tests DurableQueue implementations.

Annotations
@SuppressWarnings()
Linear Supertypes
TestKitBase, TestSuite, TestSuiteVersionSpecific, Executor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DurableQueueTestSuite
  2. TestKitBase
  3. TestSuite
  4. TestSuiteVersionSpecific
  5. Executor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DurableQueueTestSuite()

Abstract Value Members

  1. abstract def durableQueue()(implicit system: ActorSystem): DurableQueue

    Instantiates a DurableQueue for use by this test suite.

    Instantiates a DurableQueue for use by this test suite. Extending classes will need to define this method to return an instance that they wish to test.

    Each invocation of this method should acquire a new instance of a DurableQueue.

    For compliance with this test suite, a default namespace of "default" must be used.

  2. implicit abstract val system: ActorSystem
    Definition Classes
    TestKitBase

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def assertForDuration[A](a: => A, max: FiniteDuration, interval: Duration): A
    Definition Classes
    TestKitBase
  6. def awaitAssert[A](a: => A, max: Duration, interval: Duration): A
    Definition Classes
    TestKitBase
  7. def awaitCond(p: => Boolean, max: Duration, interval: Duration, message: String): Unit
    Definition Classes
    TestKitBase
  8. def childActorOf(props: Props): ActorRef
    Definition Classes
    TestKitBase
  9. def childActorOf(props: Props, name: String): ActorRef
    Definition Classes
    TestKitBase
  10. def childActorOf(props: Props, supervisorStrategy: SupervisorStrategy): ActorRef
    Definition Classes
    TestKitBase
  11. def childActorOf(props: Props, name: String, supervisorStrategy: SupervisorStrategy): ActorRef
    Definition Classes
    TestKitBase
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def expectMsg[T](max: FiniteDuration, hint: String, obj: T): T
    Definition Classes
    TestKitBase
  16. def expectMsg[T](max: FiniteDuration, obj: T): T
    Definition Classes
    TestKitBase
  17. def expectMsg[T](obj: T): T
    Definition Classes
    TestKitBase
  18. def expectMsgAllClassOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]
    Definition Classes
    TestKitBase
  19. def expectMsgAllClassOf[T](obj: Class[_ <: T]*): Seq[T]
    Definition Classes
    TestKitBase
  20. def expectMsgAllConformingOf[T](max: FiniteDuration, obj: Class[_ <: T]*): Seq[T]
    Definition Classes
    TestKitBase
  21. def expectMsgAllConformingOf[T](obj: Class[_ <: T]*): Seq[T]
    Definition Classes
    TestKitBase
  22. def expectMsgAllOf[T](max: FiniteDuration, obj: T*): Seq[T]
    Definition Classes
    TestKitBase
  23. def expectMsgAllOf[T](obj: T*): Seq[T]
    Definition Classes
    TestKitBase
  24. def expectMsgAnyClassOf[C](max: FiniteDuration, obj: Class[_ <: C]*): C
    Definition Classes
    TestKitBase
  25. def expectMsgAnyClassOf[C](obj: Class[_ <: C]*): C
    Definition Classes
    TestKitBase
  26. def expectMsgAnyOf[T](max: FiniteDuration, obj: T*): T
    Definition Classes
    TestKitBase
  27. def expectMsgAnyOf[T](obj: T*): T
    Definition Classes
    TestKitBase
  28. def expectMsgClass[C](max: FiniteDuration, c: Class[C]): C
    Definition Classes
    TestKitBase
  29. def expectMsgClass[C](c: Class[C]): C
    Definition Classes
    TestKitBase
  30. def expectMsgPF[T](max: Duration, hint: String)(f: PartialFunction[Any, T]): T
    Definition Classes
    TestKitBase
  31. def expectMsgType[T](max: FiniteDuration)(implicit t: ClassTag[T]): T
    Definition Classes
    TestKitBase
  32. def expectMsgType[T](implicit t: ClassTag[T]): T
    Definition Classes
    TestKitBase
  33. def expectNoMessage(): Unit
    Definition Classes
    TestKitBase
  34. def expectNoMessage(max: FiniteDuration): Unit
    Definition Classes
    TestKitBase
  35. def expectTerminated(target: ActorRef, max: Duration): Terminated
    Definition Classes
    TestKitBase
  36. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  37. def fishForMessage(max: Duration, hint: String)(f: PartialFunction[Any, Boolean]): Any
    Definition Classes
    TestKitBase
  38. def fishForSpecificMessage[T](max: Duration, hint: String)(f: PartialFunction[Any, T]): T
    Definition Classes
    TestKitBase
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def ignoreMsg(f: PartialFunction[Any, Boolean]): Unit
    Definition Classes
    TestKitBase
  42. def ignoreNoMsg(): Unit
    Definition Classes
    TestKitBase
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. def lastSender: ActorRef
    Definition Classes
    TestKitBase
  45. def msgAvailable: Boolean
    Definition Classes
    TestKitBase
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  49. def now: FiniteDuration
    Definition Classes
    TestKitBase
  50. def receiveN(n: Int, max: FiniteDuration): Seq[AnyRef]
    Definition Classes
    TestKitBase
  51. def receiveN(n: Int): Seq[AnyRef]
    Definition Classes
    TestKitBase
  52. def receiveOne(max: Duration): AnyRef
    Definition Classes
    TestKitBase
  53. def receiveWhile[T](max: Duration, idle: Duration, messages: Int)(f: PartialFunction[AnyRef, T]): Seq[T]
    Definition Classes
    TestKitBase
  54. def remaining: FiniteDuration
    Definition Classes
    TestKitBase
  55. def remainingOr(duration: FiniteDuration): FiniteDuration
    Definition Classes
    TestKitBase
  56. def remainingOrDefault: FiniteDuration
    Definition Classes
    TestKitBase
  57. def setAutoPilot(pilot: AutoPilot): Unit
    Definition Classes
    TestKitBase
  58. def shutdown(actorSystem: ActorSystem, duration: Duration, verifySystemShutdown: Boolean): Unit
    Definition Classes
    TestKitBase
  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. val testActor: ActorRef
    Definition Classes
    TestKitBase
  61. def testActorName: String
    Attributes
    protected
    Definition Classes
    TestKitBase
  62. val testKitSettings: TestKitSettings
    Definition Classes
    TestKitBase
  63. val tests: Tests
    Definition Classes
    DurableQueueTestSuite → TestSuite
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. def unwatch(ref: ActorRef): ActorRef
    Definition Classes
    TestKitBase
  66. def utestAfterAll(): Unit
    Definition Classes
    DurableQueueTestSuite → Executor
  67. def utestAfterEach(path: Seq[String]): Unit
    Definition Classes
    Executor
  68. def utestBeforeEach(path: Seq[String]): Unit
    Definition Classes
    Executor
  69. def utestFormatter: Formatter
    Definition Classes
    TestSuite
  70. def utestWrap(path: Seq[String], runBody: => Future[Any])(implicit ec: ExecutionContext): Future[Any]
    Definition Classes
    Executor
  71. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  74. def watch(ref: ActorRef): ActorRef
    Definition Classes
    TestKitBase
  75. def within[T](max: FiniteDuration)(f: => T): T
    Definition Classes
    TestKitBase
  76. def within[T](min: FiniteDuration, max: FiniteDuration)(f: => T): T
    Definition Classes
    TestKitBase

Deprecated Value Members

  1. macro def apply(expr: Unit): Tests
    Definition Classes
    TestSuiteVersionSpecific
    Annotations
    @deprecated
    Deprecated

    Use utest.Tests{...} instead

  2. def expectNoMsg(max: FiniteDuration): Unit
    Definition Classes
    TestKitBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.5) Use expectNoMessage instead

  3. def expectNoMsg(): Unit
    Definition Classes
    TestKitBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.5) Use expectNoMessage instead

Inherited from TestKitBase

Inherited from TestSuite

Inherited from TestSuiteVersionSpecific

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped