Class DatabaseTestUtil.MockDataProviderStubber

  • Enclosing class:
    DatabaseTestUtil

    public static class DatabaseTestUtil.MockDataProviderStubber
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void thenAffect​(int numRows)
      Sets the number of rows that should be considered affected without returning anything.
      void thenReturn​(org.jooq.Record... records)
      Sets the records to be returned when the query is called.
      void thenThrow​(java.lang.Throwable t)
      Sets the Throwable to be thrown when the query is called.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • thenAffect

        public void thenAffect​(int numRows)
        Sets the number of rows that should be considered affected without returning anything. This is generally only for insert / update queries
      • thenReturn

        public void thenReturn​(org.jooq.Record... records)
        Sets the records to be returned when the query is called.
      • thenThrow

        public void thenThrow​(java.lang.Throwable t)
        Sets the Throwable to be thrown when the query is called.