@Test void single() { when(database.select(Mockito.<SequenceExpression<Integer>>any(), eq("TEST_SEQ"))).thenReturn(select); when(database.getDefaultSqlExecutor()).thenReturn(sqlExecutor); when(select.single(sqlExecutor)).thenReturn(501); Sequence<Integer> sut = createSut(); Integer single = sut.single(); assertThat(single, is(501)); }
public T single() { return single(database.getDefaultSqlExecutor()); }
Sequence { public T single() { return single(database.getDefaultSqlExecutor()); } }
Sequence { public T single() { return single(database.getDefaultSqlExecutor()); } private  Sequence(Builder<T> builder); }
Sequence { public T single() { return single(database.getDefaultSqlExecutor()); } private  Sequence(Builder<T> builder); SequenceExpression<T> nextVal(); T single(); TypeToken<T> type(); RowMapper<T> rowMapper(String label); String name(); String sql(); static Builder<T> newBuilder(); }
Sequence { public T single() { return single(database.getDefaultSqlExecutor()); } private  Sequence(Builder<T> builder); SequenceExpression<T> nextVal(); T single(); TypeToken<T> type(); RowMapper<T> rowMapper(String label); String name(); String sql(); static Builder<T> newBuilder();  }