- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,082 for Shouldn (0.05 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemove_present() { int initialSize = getMap().size(); assertEquals("remove(present) should return the associated value", v0(), getMap().remove(k0())); assertEquals( "remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size()); expectMissing(e0()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 5.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
try { Artifact artifact = new Artifact("fess-theme-test", "1.0.0"); themeHelper.getJarFile(artifact); fail("Should throw ThemeException"); } catch (Exception e) { // Should throw ThemeException or other exception related to file not found assertTrue(e.getMessage().contains("does not exist") || e instanceof ThemeException); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
public void testGet_yes() { assertEquals("get(present) should return the associated value", v0(), get(k0())); } public void testGet_no() { assertNull("get(notPresent) should return null", get(k3())); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES) public void testGet_nullNotContainedButAllowed() { assertNull("get(null) should return null", get(null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
getMethodName() + "(firstElement) should return 0", 0, find(getOrderedElements().get(0))); } public void testFind_no() { assertEquals(getMethodName() + "(notPresent) should return -1", -1, find(e3())); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) public void testFind_nullNotContainedButSupported() { assertEquals(getMethodName() + "(nullNotPresent) should return -1", -1, find(null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
public void testAbsent() { assertEquals( "Map.merge(absent, value, function) should return value", v3(), getMap() .merge( k3(), v3(), (oldV, newV) -> { throw new AssertionFailedError( "Should not call merge function if key was absent"); })); expectAdded(e3()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java
assertNotNull("Mapping option should not be null", mappingOption); OptionalThing<JsonFieldNaming> fieldNamingOpt = mappingOption.getFieldNaming(); assertTrue("Field naming should be present", fieldNamingOpt.isPresent()); assertEquals("Field naming should be CAMEL_TO_LOWER_SNAKE", JsonFieldNaming.CAMEL_TO_LOWER_SNAKE, fieldNamingOpt.get()); } public void test_instanceCreation() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java
public void testRetainAll_duplicatesKept() { E[] array = createSamplesArray(); array[1] = e0(); collection = getSubjectGenerator().create(array); assertFalse( "containsDuplicates.retainAll(superset) should return false", collection.retainAll(MinimalCollection.of(createSamplesArray()))); expectContents(array); } @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(SEVERAL)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.",
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.",
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
assertFalse( "A List should not equal another List containing different elements.", getList().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherListContainingNull() { List<E> other = new ArrayList<>(getSampleElements()); other.set(other.size() / 2, null); assertFalse(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.6K bytes - Viewed (0)