@Test public void shouldGenerateAnInstanceOfQueryBuilder() throws ErrorResultException { adapter.query(); verify(mockQueryFactory).createInstance(); }
public QueryBuilder query() { return queryFactory.createInstance(); }
CoreTokenAdapter { public QueryBuilder query() { return queryFactory.createInstance(); } }
CoreTokenAdapter { public QueryBuilder query() { return queryFactory.createInstance(); } @Inject  CoreTokenAdapter(ConnectionFactory connectionFactory, QueryFactory queryFactory,
                            LDAPAdapter ldapAdapter, ConfigurationObserver observer,
                            CoreTokenConfigListener listener, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); }
CoreTokenAdapter { public QueryBuilder query() { return queryFactory.createInstance(); } @Inject  CoreTokenAdapter(ConnectionFactory connectionFactory, QueryFactory queryFactory,
                            LDAPAdapter ldapAdapter, ConfigurationObserver observer,
                            CoreTokenConfigListener listener, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void create(Token token); Token read(String tokenId); QueryBuilder query(); QueryFilter buildFilter(); void updateOrCreate(Token token); void delete(String tokenId); }
CoreTokenAdapter { public QueryBuilder query() { return queryFactory.createInstance(); } @Inject  CoreTokenAdapter(ConnectionFactory connectionFactory, QueryFactory queryFactory,
                            LDAPAdapter ldapAdapter, ConfigurationObserver observer,
                            CoreTokenConfigListener listener, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void create(Token token); Token read(String tokenId); QueryBuilder query(); QueryFilter buildFilter(); void updateOrCreate(Token token); void delete(String tokenId);  }