@Test public void previous_returnsProperItem() { SqlPart sqlPart = mock(SqlPart.class); SavePointImpl savePoint = new SavePointImpl("savepoint", sqlPart); SqlPart result = savePoint.previous(); assertThat(result, is(sqlPart)); }
@Nullable @Override public SqlPart previous() { return mPrevious; }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Nullable @Override public SqlPart previous() { return mPrevious; } }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Nullable @Override public SqlPart previous() { return mPrevious; } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Nullable @Override public SqlPart previous() { return mPrevious; } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous(); }
SavePointImpl extends BaseFinishedStatement implements SavePoint { @Nullable @Override public SqlPart previous() { return mPrevious; } SavePointImpl(@NotNull final String savePointName, @NotNull final SqlPart previous); @Override void prependTo(@NotNull final RawSqlBuilder builder); @Nullable @Override SqlPart previous();  }