Class DataSourceContractTest

  • public abstract class DataSourceContractTest
    extends Object
    A collection of contract tests for DataSource implementations.

    All these tests should pass for all implementations - behaviour specific to only a subset of implementations should be tested elsewhere.

    Subclasses should only include the logic necessary to construct the DataSource and allow it to successfully read data. They shouldn't include any new @Test methods - implementation-specific tests should be in a separate class.

    If one of these tests fails for a particular DataSource implementation, that's a bug in the implementation. The test should be overridden in the subclass and annotated Ignore, with a link to an issue to track fixing the implementation and un-ignoring the test.