Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReturning (0.46 sec)

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

     * Unit tests for {@link Callables}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @NullUnmarked
    public class CallablesTest extends TestCase {
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top