@Test public void throwsIllegalStateExceptionIfQueryAndPatternSpecified() { try { PrimingRequest.queryBuilder() .withQuery("select something") .withQueryPattern("select something where name = .*") .build(); fail("Expected illegal state exception"); } catch (IllegalStateException e) { assertEquals("Can't specify query and queryPattern", e.getMessage()); } }
public static PrimingRequestBuilder queryBuilder() { return new PrimingRequestBuilder(PrimingRequestBuilder.PrimeType.QUERY); }
PrimingRequest { public static PrimingRequestBuilder queryBuilder() { return new PrimingRequestBuilder(PrimingRequestBuilder.PrimeType.QUERY); } }
PrimingRequest { public static PrimingRequestBuilder queryBuilder() { return new PrimingRequestBuilder(PrimingRequestBuilder.PrimeType.QUERY); } private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, List<Map<String, ?>> rows, Result result, List<ColumnMetadata> columnTypes, List<CqlType> variableTypes, Long fixedDelay, Map<String, Object> config); private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, Then then); }
PrimingRequest { public static PrimingRequestBuilder queryBuilder() { return new PrimingRequestBuilder(PrimingRequestBuilder.PrimeType.QUERY); } private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, List<Map<String, ?>> rows, Result result, List<ColumnMetadata> columnTypes, List<CqlType> variableTypes, Long fixedDelay, Map<String, Object> config); private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, Then then); static PrimingRequestBuilder queryBuilder(); static PrimingRequestBuilder preparedStatementBuilder(); static Then.ThenBuilder then(); static Then.ThenBuilder andThen(); When getWhen(); Then getThen(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
PrimingRequest { public static PrimingRequestBuilder queryBuilder() { return new PrimingRequestBuilder(PrimingRequestBuilder.PrimeType.QUERY); } private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, List<Map<String, ?>> rows, Result result, List<ColumnMetadata> columnTypes, List<CqlType> variableTypes, Long fixedDelay, Map<String, Object> config); private  PrimingRequest(PrimingRequestBuilder.PrimeType primeType, String query, String queryPattern, List<Consistency> consistency, Then then); static PrimingRequestBuilder queryBuilder(); static PrimingRequestBuilder preparedStatementBuilder(); static Then.ThenBuilder then(); static Then.ThenBuilder andThen(); When getWhen(); Then getThen(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }