- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 206 for getList (0.07 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
int index = aValidIndex(); E initialValue = getList().get(index); assertEquals( "set(i, x) should return the old element at position i.", initialValue, getList().set(index, newValue)); assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index)); assertEquals("set() should not change the size of a list.", getNumElements(), getList().size()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
assertFalse( "Lists of different sizes should not be equal.", getList().equals(new ArrayList<E>(moreElements))); } public void testEquals_set() { assertFalse("A List should never equal a Set.", getList().equals(MinimalSet.from(getList()))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java
E duplicate = arrayAndDuplicate.duplicate; int firstIndex = getList().indexOf(duplicate); int initialSize = getList().size(); assertTrue("remove(present) should return true", getList().remove(duplicate)); assertTrue( "After remove(duplicate), a list should still contain the duplicate element", getList().contains(duplicate)); assertFalse(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java
public void testRemoveAtIndex_unsupported() { assertThrows(UnsupportedOperationException.class, () -> getList().remove(0)); expectUnchanged(); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) public void testRemoveAtIndex_negative() { assertThrows(IndexOutOfBoundsException.class, () -> getList().remove(-1)); expectUnchanged(); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
int index = aValidIndex(); E initialValue = getList().get(index); assertEquals( "set(i, x) should return the old element at position i.", initialValue, getList().set(index, newValue)); assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index)); assertEquals("set() should not change the size of a list.", getNumElements(), getList().size()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/CrawlTestBase.java
assertEquals(1, itemList.size()); return itemList.get(0); } protected static List<String> getSchedulerIds(final String namePrefix) { final String response = getJsonResponse("/api/admin/scheduler/settings"); final List<String> idList = JsonPath.from(response).getList(getResponsePath(namePrefix) + ".id");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
assertFalse( "Lists of different sizes should not be equal.", getList().equals(new ArrayList<E>(moreElements))); } public void testEquals_set() { assertFalse("A List should never equal a Set.", getList().equals(MinimalSet.from(getList()))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java
String response = checkGetMethod(searchBody, getListEndpointSuffix()).asString(); final int total = JsonPath.from(response).getInt("response.total"); final List<Map<String, String>> items = JsonPath.from(response).getList("response.settings"); final int status = JsonPath.from(response).getInt("response.status"); assertEquals(total, items.size()); assertEquals(0, status); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
public void testToArray_noArg() { Object[] actual = getList().toArray(); assertArrayEquals("toArray() order should match list", createOrderedArray(), actual); } @CollectionSize.Require(absent = ZERO) public void testToArray_tooSmall() { Object[] actual = getList().toArray(new Object[0]);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java
@ListFeature.Require(SUPPORTS_SET) public void testReplaceAll() { getList().replaceAll(e -> samples.e3()); expectContents(nCopies(getNumElements(), samples.e3())); } @ListFeature.Require(SUPPORTS_SET) public void testReplaceAll_changesSome() { getList().replaceAll(e -> e.equals(samples.e0()) ? samples.e3() : e); E[] expected = createSamplesArray();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.4K bytes - Viewed (0)