Skip to content

Commit d5ae3d2

Browse files
committed
Update TestRS: Change assertion for molecularFormula to use equalTo(null)
1 parent 31d693e commit d5ae3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/icatproject/integration/TestRS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public void TestJsoniseBean() throws Exception {
296296
JsonArray st_null_response = search(session, "SELECT st from SampleType st WHERE st.name = 'N/A'", 1);
297297
collector.checkThat(st_null_response.getJsonObject(0).containsKey("SampleType"), is(true));
298298
collector.checkThat(st_null_response.getJsonObject(0).getJsonObject("SampleType").getString("pid"), is("st:004"));
299-
collector.checkThat(st_null_response.getJsonObject(0).getJsonObject("SampleType").get("molecularFormula"), is(JsonValue.NULL));
299+
collector.checkThat(st_null_response.getJsonObject(0).getJsonObject("SampleType").get("molecularFormula"), is(equalTo(null)));
300300

301301
/*
302302
* Expected: <[{"Sample":{"id":2181,"createId":"db/notroot","createTime":

0 commit comments

Comments
 (0)