MultiMatchQuery extends MinimumShouldMatchQuery { public static Init<?> builder() { return new MultiMatchQueryBuilder(); } MultiMatchQuery(QueryTypeArrayList<QueryTypeItem> queryBag); @Override String getQueryString(); static Init<?> builder();  }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_parameters_defined_then_query_throws_exception() throws MandatoryParametersAreMissingException { MultiMatchQuery .builder() .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_fields_defined_then_query_throws_exception() throws MandatoryParametersAreMissingException { MultiMatchQuery .builder() .query("blah") .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_query_defined_then_query_throws_exception() throws MandatoryParametersAreMissingException { MultiMatchQuery .builder() .fields("apple", "plum") .build(); }