Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for thenReturn (0.2 sec)

  1. guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

        verify(mock).invalidateAll();
      }
    
      public void testSize() {
        when(mock.size()).thenReturn(0L);
        assertEquals(0, forward.size());
      }
    
      public void testStats() {
        when(mock.stats()).thenReturn(null);
        assertNull(forward.stats());
      }
    
      public void testAsMap() {
        when(mock.asMap()).thenReturn(null);
        assertNull(forward.asMap());
      }
    
      public void testCleanUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService service = mock(ExecutorService.class);
        when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS))
            .thenReturn(false)
            .thenReturn(true);
        when(service.isTerminated()).thenReturn(true);
        assertTrue(shutdownAndAwaitTermination(service, 1L, SECONDS));
        verify(service).shutdown();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        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 {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        int b = in.read();
        assertEquals('y', b);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
Back to top