- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for testWrap (0.17 sec)
-
guava-tests/test/com/google/common/primitives/PrimitivesTest.java
public void testIsWrapperType() { assertThat(Primitives.isWrapperType(Void.class)).isTrue(); assertThat(Primitives.isWrapperType(void.class)).isFalse(); } public void testWrap() { assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class); assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java
public void testIsWrapperType() { assertThat(Primitives.isWrapperType(Void.class)).isTrue(); assertThat(Primitives.isWrapperType(void.class)).isFalse(); } public void testWrap() { assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class); assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EquivalenceTest.java
return input.length(); } } private static final Equivalence<String> LENGTH_EQUIVALENCE = Equivalence.equals().onResultOf(LengthFunction.INSTANCE); public void testWrap() { new EqualsTester() .addEqualityGroup( LENGTH_EQUIVALENCE.wrap("hello"), LENGTH_EQUIVALENCE.wrap("hello"), LENGTH_EQUIVALENCE.wrap("world"))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
return super.setValue(value); } private static final long serialVersionUID = 0; } static class TestMap<K, V> extends SynchronizedMapTest.TestMap<K, V> implements NavigableMap<K, V> { public TestMap(NavigableMap<K, V> delegate, Object mutex) { super(delegate, mutex); } @Override protected NavigableMap<K, V> delegate() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 12.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
} public void testRemove() { TestMap map = new TestMap(); map.put("foo", 1); assertFalse(map.remove("foo", 2)); assertFalse(map.remove("bar", 1)); assertEquals(Integer.valueOf(1), map.get("foo")); assertTrue(map.remove("foo", 1)); assertTrue(map.isEmpty()); } public void testReplace() { TestMap map = new TestMap(); map.put("foo", 1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
protected <K, V> Map<K, V> create() { TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex); Map<K, V> outer = Synchronized.map(inner, mutex); return outer; } static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable { public final Object mutex; private Map<K, V> delegate; public TestMap(Map<K, V> delegate, Object mutex) { checkNotNull(mutex);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
protected <K, V> Map<K, V> create() { TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex); Map<K, V> outer = Synchronized.map(inner, mutex); return outer; } static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable { public final Object mutex; private Map<K, V> delegate; public TestMap(Map<K, V> delegate, Object mutex) { checkNotNull(mutex);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
import junit.framework.TestCase; /** Tests for {@code CollectSpliterators}. */ @GwtCompatible @ElementTypesAreNonnullByDefault public class CollectSpliteratorsTest extends TestCase { public void testMap() { SpliteratorTester.of( () -> CollectSpliterators.map( Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
assertThat(hoge.getElementClassOfCollection(), is(sameClass(String.class))); } /** * @throws Exception */ @Test public void testMap() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("map"); assertThat(hoge.getKeyClassOfMap(), is(sameClass(String.class)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
} public void test_useForNull_twice() { Joiner j = Joiner.on("x").useForNull("y"); assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y")); } public void testMap() { MapJoiner j = Joiner.on(';').withKeyValueSeparator(':'); assertEquals("", j.join(ImmutableMap.of())); assertEquals(":", j.join(ImmutableMap.of("", "")));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 11.7K bytes - Viewed (0)