Merge remote-tracking branch 'origin/master'

This commit is contained in:
Grahame Grieve 2022-05-06 10:02:10 +10:00
commit 3a696b0231
1 changed files with 4 additions and 2 deletions

View File

@ -426,8 +426,10 @@ public class TerminologyCacheTests {
String extracted = cache.extracted(json, vs);
JsonElement element = jsonParser.parse(extracted);
assertEquals(max, element.getAsJsonObject().getAsJsonObject("expansion").getAsJsonArray("contains").size());
final int expansionSize = element.getAsJsonObject().has("expansion")
? element.getAsJsonObject().getAsJsonObject("expansion").getAsJsonArray("contains").size()
: 0;
assertEquals(max, expansionSize);
}
@ParameterizedTest