Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,878 for void (0.17 sec)

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

          fail();
        }
      }
    
      private static class RunFailingService extends AbstractService {
        @Override
        protected void doStart() {
          notifyStarted();
          notifyFailed(EXCEPTION);
        }
    
        @Override
        protected void doStop() {
          fail();
        }
      }
    
      private static class StopFailingService extends AbstractService {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .testEquals();
      }
    
      public void testWrap_get() {
        String test = "test";
        Wrapper<String> wrapper = LENGTH_EQUIVALENCE.wrap(test);
        assertSame(test, wrapper.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(LENGTH_EQUIVALENCE.wrap("hello"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        f.addCallback(
            new FutureCallback<String>() {
              @Override
              public void onSuccess(String result) {
                called[0] = true;
              }
    
              @Override
              public void onFailure(Throwable t) {}
            },
            directExecutor());
        assertThat(called[0]).isTrue();
      }
    
      // Avoid trouble with automatic mapping between JRE and Kotlin runtime classes.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        public static void doThrow(Object arg) {
          if (arg == null) {
            throw new FooException();
          }
        }
    
        public void noArg() {}
    
        public void oneArg(String s) {
          checkNotNull(s);
        }
    
        void packagePrivateOneArg(String s) {
          checkNotNull(s);
        }
    
        protected void protectedOneArg(String s) {
          checkNotNull(s);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

      interface Interface1 {
        @Subscribe
        void annotatedIn1(Object o);
    
        @Subscribe
        void annotatedIn1And2(Object o);
    
        @Subscribe
        void annotatedIn1And2AndClass(Object o);
    
        void declaredIn1AnnotatedIn2(Object o);
    
        void declaredIn1AnnotatedInClass(Object o);
    
        void nowhereAnnotated(Object o);
      }
    
      interface Interface2 extends Interface1 {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      @Override
      protected void setUp() {
        future = TestedFuture.create();
        delegate = newDelegate();
      }
    
      public void testPending() {
        assertPending(future);
      }
    
      public void testSuccessful() throws Exception {
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testOf() {
        assertEquals("training", Optional.of("training").get());
      }
    
      public void testOf_null() {
        try {
          Optional.of(null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testFromNullable() {
        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testAlwaysTrue_serialization() {
        checkSerialization(Predicates.alwaysTrue());
      }
    
      /*
       * Tests for Predicates.alwaysFalse().
       */
    
      public void testAlwaysFalse_apply() throws Exception {
        assertEvalsToFalse(Predicates.alwaysFalse());
      }
    
      public void testAlwaysFalse_equality() throws Exception {
        new EqualsTester()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

                .createTestSuite());
    
        return suite;
      }
    
      // Creation tests
    
      public void testEmptyBuilder() {
        ImmutableSortedMap<String, Integer> map =
            ImmutableSortedMap.<String, Integer>naturalOrder().build();
        assertEquals(Collections.<String, Integer>emptyMap(), map);
      }
    
      public void testSingletonBuilder() {
        ImmutableSortedMap<String, Integer> map =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/BooleansTest.java

      private static final boolean[] VALUES = {false, true};
    
      public void testHashCode() {
        assertThat(Booleans.hashCode(true)).isEqualTo(Boolean.TRUE.hashCode());
        assertThat(Booleans.hashCode(false)).isEqualTo(Boolean.FALSE.hashCode());
      }
    
      public void testTrueFirst() {
        assertThat(Booleans.trueFirst().compare(true, true)).isEqualTo(0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
Back to top