# Package com.streambase.sb.unittest

Provides classes and interfaces used to author StreamBase Unit tests.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Dequeuer | A Dequeuer is used for dequeueing tuples from a specific stream.
  Enqueuer | An Enqueuer is used for enqueueing tuples onto a stream.
  Expecter.Predicate | To expect tuples by predicate, implement this interface.
  SBServerManager | `SBServerManager` provides control and access to a StreamBase Engine.
  SBTestEnvironment | This interface is not expected to be implemented by end-users.
  TupleComparator | A `TupleComparator` abstracts comparison of tuples.
  TupleMaker<T> | Interface for constructing tuples from data.

- Class Summary
  Class | Description
  --- | ---
  AbstractTupleMaker<T> | A convenience class which implements all of the methods of `TupleMaker` in terms of `AbstractTupleMaker.createTuple(Schema, Object)`.
  BaseTestEnvironment | A default implementation of `SBTestEnvironment` for use by `SBServerManager` instances.
  CSVTupleMaker | A factory to build `Tuple`s from CSV formatted `String`s.
  Expecter | An `Expecter` is used for expecting tuples from a `Dequeuer`.
  Expecter.AbstractPredicate | Subclass this and override isExpected(Tuple t) to simplify creating predicates.
  FieldBasedTupleComparator | A `TupleComparator` that compares tuples in a naive field-by-field manner.
  FieldBasedTupleComparator.CompareFunctor | A strategy object for handling comparisons of specific field types.
  FieldBasedTupleComparator.DoubleCompareFunctor | Compare double values using a ratio test and a tolerance.
  FieldBasedTupleComparator.IgnoreTimestampCompareFunctor |
  FieldBasedTupleComparator.ListCompareFunctor |
  FieldBasedTupleComparator.NaiveObjectCompareFunctor |
  FieldBasedTupleComparator.RegexCompareFunctor | Check if the second argument matches the regex defined for the first argument.
  FieldBasedTupleComparator.TupleCompareFunctor |
  JSONSingleQuotesTupleMaker | A factory to build `Tuple`s from JSON formatted `String`s that may use the single quote character `'` in lieu of the double quote character `"`.
  JSONTupleMaker | A factory to build `Tuple`s from JSON formatted `String`s.
  ObjectArrayTupleMaker | A factory to build `Tuple`s from Java objects.
  ServerManagerFactory | Contains static methods for creating concrete `SBServerManager`
  TimeServiceFactory | Contains static methods for creating concrete `TimeService`
  UnitTestProperties | Unit test properties

- Enum Summary
  Enum | Description
  --- | ---
  Expecter.DequeueSetting | Dequeue settings

## Package com.streambase.sb.unittest Description

Provides classes and interfaces used to author StreamBase Unit tests.

Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.