@Test void sql() { when(database.dialect()).thenReturn(dialect); when(dialect.nextFromSequence("TOM", "MYSCHEMA", "TEST_SEQ")).thenReturn("get the next sequence value"); Sequence<Integer> sut = createSut(); String result = sut.sql(); assertThat(result, is("get the next sequence value")); }
public String sql() { return database.dialect().nextFromSequence(catalog, schema, sequenceName); }
Sequence { public String sql() { return database.dialect().nextFromSequence(catalog, schema, sequenceName); } }
Sequence { public String sql() { return database.dialect().nextFromSequence(catalog, schema, sequenceName); } private  Sequence(Builder<T> builder); }
Sequence { public String sql() { return database.dialect().nextFromSequence(catalog, schema, sequenceName); } 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 String sql() { return database.dialect().nextFromSequence(catalog, schema, sequenceName); } 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();  }