Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 41 for Inner (0.02 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        async.cancel(true);
        assertTrue(inner.isCancelled());
        assertTrue(inner.wasInterrupted());
        assertThrows(CancellationException.class, inner::get);
      }
    
      public void testCancel_resultCancelsInner() throws Exception {
        SettableFuture<Object> async = SettableFuture.create();
        SettableFuture<Object> inner = SettableFuture.create();
        async.setFuture(inner);
        async.cancel(false);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        async.cancel(true);
        assertTrue(inner.isCancelled());
        assertTrue(inner.wasInterrupted());
        assertThrows(CancellationException.class, inner::get);
      }
    
      public void testCancel_resultCancelsInner() throws Exception {
        SettableFuture<Object> async = SettableFuture.create();
        SettableFuture<Object> inner = SettableFuture.create();
        async.setFuture(inner);
        async.cancel(false);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(mapping.t, mapping.selfMapping().getToType());
      }
    
      private static class ParameterizedOuter<T> {
        @Keep public Inner field;
    
        @SuppressWarnings("ClassCanBeStatic") // We want to test an inner class.
        class Inner {}
      }
    
      public void testInnerClassWithParameterizedOwner() throws Exception {
        Type fieldType = ParameterizedOuter.class.getField("field").getGenericType();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(mapping.t, mapping.selfMapping().getToType());
      }
    
      private static class ParameterizedOuter<T> {
        @Keep public Inner field;
    
        @SuppressWarnings("ClassCanBeStatic") // We want to test an inner class.
        class Inner {}
      }
    
      public void testInnerClassWithParameterizedOwner() throws Exception {
        Type fieldType = ParameterizedOuter.class.getField("field").getGenericType();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertThat(toTest).isEqualTo("FooBar{}");
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToStringHelper_localInnerClass() {
        // Local inner classes have names ending like "Outer.$1Inner"
        class LocalInnerClass {}
        String toTest = MoreObjects.toStringHelper(new LocalInnerClass()).toString();
        assertThat(toTest).isEqualTo("LocalInnerClass{}");
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 22K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        @SuppressWarnings("unchecked")
        NavigableMap<K, V> innermost =
            new SafeTreeMap<>((Comparator<? super K>) Ordering.natural().nullsFirst());
        TestMap<K, V> inner = new TestMap<>(innermost, mutex);
        NavigableMap<K, V> outer = Synchronized.navigableMap(inner, mutex);
        return outer;
      }
    
      static class TestEntry<K, V> extends ForwardingMapEntry<K, V> implements Serializable {
        private final Entry<K, V> delegate;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

    public class SynchronizedMapTest extends TestCase {
      public final Object mutex = new Object[0]; // something Serializable
    
      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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

    public class SynchronizedMapTest extends TestCase {
      public final Object mutex = new Object[0]; // something Serializable
    
      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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertEquals(228L, MemoryUtil.sizeOf(mixedMap));
    
            // Nested maps
            Map<String, Map<String, String>> nestedMap = new HashMap<>();
            nestedMap.put("outer", Maps.map("inner", "value").$());
            assertEquals(183L, MemoryUtil.sizeOf(nestedMap));
        }
    
        @Test
        public void test_sizeOf_customObjects() {
            // Test fallback case for custom objects (should return 16L)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(delegate.isOverridable());
        assertFalse(delegate.isVarArgs());
      }
    
      @SuppressWarnings("ClassCanBeStatic") // We want to test an inner class.
      private class InnerWithDefaultConstructor {
        class NestedInner {}
      }
    
      public void testInnerClassDefaultConstructor() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 31.1K bytes
    - Click Count (0)
Back to Top