File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java-client/src/test/java/co/elastic/clients/elasticsearch/model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 40
40
import co .elastic .clients .json .ObjectDeserializer ;
41
41
import co .elastic .clients .testkit .ModelTestCase ;
42
42
import co .elastic .clients .util .MapBuilder ;
43
+ import jakarta .json .stream .JsonParsingException ;
43
44
import org .junit .jupiter .api .Test ;
44
45
45
46
import static co .elastic .clients .elasticsearch ._types .query_dsl .Query .Kind .MatchAll ;
@@ -331,8 +332,7 @@ public void testFunctionScoreQuery() {
331
332
assertEquals (MatchAll , fsq .query ().functionScore ().query ()._kind ());
332
333
333
334
// should not work, shortcut for function score query is currently not supported
334
- fsq = fromJson (shortcut , FunctionScoreQuery .class );
335
- assertEquals (0 , fsq .functions ().size ());
335
+ assertThrows (JsonParsingException .class ,() -> fromJson (shortcut , FunctionScoreQuery .class ));
336
336
}
337
337
338
338
@ Test
You can’t perform that action at this time.
0 commit comments