add usage of isEmpty method

This commit is contained in:
Andrei Paikin
2018-05-25 22:47:05 +03:00
parent 20d90bfb0b
commit d00501eabd
6 changed files with 17 additions and 17 deletions

View File

@@ -691,7 +691,7 @@ public class JSONArrayTest {
JSONArray jsonArray = new JSONArray(arrayStr1);
jsonArray.remove(0);
assertTrue("array should be empty", null == jsonArray.remove(5));
assertTrue("jsonArray should be empty", jsonArray.length() == 0);
assertTrue("jsonArray should be empty", jsonArray.isEmpty());
}
/**