Class DatabaseTestUtil.MockDataProviderStubber
- java.lang.Object
-
- org.curioswitch.common.testing.database.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 therecords
to be returned when the query is called.void
thenThrow(java.lang.Throwable t)
Sets theThrowable
to be thrown when the query is called.
-
-
-
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 therecords
to be returned when the query is called.
-
thenThrow
public void thenThrow(java.lang.Throwable t)
Sets theThrowable
to be thrown when the query is called.
-
-