@Test public void getAll() { LOG.info( "\n===RunResultDaoTest.getAll===\n" ); List<RunResult> list = ESSuiteTest.runResultDao.getAll(); for ( RunResult runResult : list ) { LOG.info( runResult.toString() ); } assertEquals( 10, list.size() ); }
public List<RunResult> getAll() { SearchResponse response = elasticSearchClient.getClient() .prepareSearch( DAO_INDEX_KEY ) .setTypes( DAO_TYPE_KEY ) .addSort( fieldSort( "createTime" ) ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); return toList( response ); }
RunResultDao extends Dao { public List<RunResult> getAll() { SearchResponse response = elasticSearchClient.getClient() .prepareSearch( DAO_INDEX_KEY ) .setTypes( DAO_TYPE_KEY ) .addSort( fieldSort( "createTime" ) ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); return toList( response ); } }
RunResultDao extends Dao { public List<RunResult> getAll() { SearchResponse response = elasticSearchClient.getClient() .prepareSearch( DAO_INDEX_KEY ) .setTypes( DAO_TYPE_KEY ) .addSort( fieldSort( "createTime" ) ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); return toList( response ); } @Inject  RunResultDao( IElasticSearchClient elasticSearchClient ); }
RunResultDao extends Dao { public List<RunResult> getAll() { SearchResponse response = elasticSearchClient.getClient() .prepareSearch( DAO_INDEX_KEY ) .setTypes( DAO_TYPE_KEY ) .addSort( fieldSort( "createTime" ) ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); return toList( response ); } @Inject  RunResultDao( IElasticSearchClient elasticSearchClient ); boolean save( RunResult runResult ); boolean delete( String id ); List<RunResult> getAll(); Map<Run, List<RunResult>> getMap( Map<String, Run> runs ); String getFailures( String runResultId ); }
RunResultDao extends Dao { public List<RunResult> getAll() { SearchResponse response = elasticSearchClient.getClient() .prepareSearch( DAO_INDEX_KEY ) .setTypes( DAO_TYPE_KEY ) .addSort( fieldSort( "createTime" ) ) .setSize( MAX_RESULT_SIZE ) .execute() .actionGet(); return toList( response ); } @Inject  RunResultDao( IElasticSearchClient elasticSearchClient ); boolean save( RunResult runResult ); boolean delete( String id ); List<RunResult> getAll(); Map<Run, List<RunResult>> getMap( Map<String, Run> runs ); String getFailures( String runResultId ); static final String DAO_INDEX_KEY; static final String DAO_TYPE_KEY; }