Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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 {
        assertThat(Callables.returning(null).call()).isNull();
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top