Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,967 for void (0.13 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    @AndroidIncompatible
    @GwtIncompatible
    public class FinalizableReferenceQueueTest extends TestCase {
    
      private @Nullable FinalizableReferenceQueue frq;
    
      @Override
      protected void tearDown() throws Exception {
        frq = null;
      }
    
    
      public void testFinalizeReferentCalled() {
        final MockReference reference = new MockReference(frq = new FinalizableReferenceQueue());
    
        GcFinalization.awaitDone(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

      @SuppressWarnings("DoNotMock")
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        hasher = mock(Hasher.class);
        hashFunction = mock(HashFunction.class);
        buffer = new ByteArrayInputStream(testBytes);
    
        when(hashFunction.newHasher()).thenReturn(hasher);
      }
    
      public void testRead_putSingleByte() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    @AndroidIncompatible
    @GwtIncompatible
    public class FinalizableReferenceQueueTest extends TestCase {
    
      private @Nullable FinalizableReferenceQueue frq;
    
      @Override
      protected void tearDown() throws Exception {
        frq = null;
      }
    
    
      public void testFinalizeReferentCalled() {
        final MockReference reference = new MockReference(frq = new FinalizableReferenceQueue());
    
        GcFinalization.awaitDone(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

      public static class StringSubscriber {
    
        @Subscribe
        public void handle(String s) {}
      }
    
      public static class IntegerSubscriber {
    
        @Subscribe
        public void handle(Integer i) {}
      }
    
      public static class ObjectSubscriber {
    
        @Subscribe
        public void handle(Object o) {}
      }
    
      public void testFlattenHierarchy() {
        assertEquals(
            ImmutableSet.of(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

        }
    
        public void test_list() {
            Map<String, Object> doc = new HashMap<>();
            doc.put("key1", Arrays.asList("aaa", "bbb"));
            assertArrayEquals(new String[] { "aaa", "bbb" }, DocumentUtil.getValue(doc, "key1", String[].class));
            assertEquals(Arrays.asList("aaa", "bbb"), (List<String>) DocumentUtil.getValue(doc, "key1", List.class));
        }
    
        public void test_integer() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        return getMap().entrySet();
      }
    
      /** @see AbstractContainerTester#resetContainer() */
      protected final void resetMap() {
        resetContainer();
      }
    
      protected void resetMap(Entry<K, V>[] entries) {
        resetContainer(getSubjectGenerator().create((Object[]) entries));
      }
    
      protected void expectMissingKeys(K... elements) {
        for (K element : elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

     */
    public class ByteSinkTest extends IoTestCase {
    
      private final byte[] bytes = newPreFilledByteArray(10000);
    
      private TestByteSink sink;
    
      @Override
      protected void setUp() throws Exception {
        sink = new TestByteSink();
      }
    
      public void testOpenBufferedStream() throws IOException {
        OutputStream out = sink.openBufferedStream();
        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testEntrySetIteratorRemove() {
        Set<Entry<K, V>> entrySet = getMap().entrySet();
        Iterator<Entry<K, V>> entryItr = entrySet.iterator();
        assertEquals(e0(), entryItr.next());
        entryItr.remove();
        assertTrue(getMap().isEmpty());
        assertFalse(entrySet.contains(e0()));
      }
    
      public void testContainsEntryWithIncomparableKey() {
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

      private static final Object OBJECT = new Object();
    
      public void testNewReference() throws Exception {
        assertEquals(null, Atomics.newReference().get());
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.5K bytes
    - Viewed (1)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

      private static final Object OBJECT = new Object();
    
      public void testNewReference() throws Exception {
        assertEquals(null, Atomics.newReference().get());
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top