Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for deliberate (0.08 seconds)

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

        assertEquals(Service.State.RUNNING, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
      public void testStart_failed() {
        Exception exception = new Exception("deliberate");
        TestService service =
            new TestService() {
              @Override
              protected void startUp() throws Exception {
                super.startUp();
                throw exception;
              }
            };
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

        assertEquals(Service.State.RUNNING, service.state());
        assertThat(service.transitionStates).containsExactly(Service.State.STARTING);
      }
    
      public void testStart_failed() {
        Exception exception = new Exception("deliberate");
        TestService service =
            new TestService() {
              @Override
              protected void startUp() throws Exception {
                super.startUp();
                throw exception;
              }
            };
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        final RuntimeException exception = new RuntimeException("deliberate");
    
        @Override
        protected void doStart() {
          throw exception;
        }
    
        @Override
        protected void doStop() {
          fail();
        }
      }
    
      private static class RunThrowingService extends AbstractService {
    
        final RuntimeException exception = new RuntimeException("deliberate");
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        final RuntimeException exception = new RuntimeException("deliberate");
    
        @Override
        protected void doStart() {
          throw exception;
        }
    
        @Override
        protected void doStop() {
          fail();
        }
      }
    
      private static class RunThrowingService extends AbstractService {
    
        final RuntimeException exception = new RuntimeException("deliberate");
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        spy.verifyCallCount(2);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform_exception() throws Exception {
        RuntimeException exception = new RuntimeException("deliberate");
        Function<Integer, String> function =
            unused -> {
              throw exception;
            };
        Future<String> transformed = lazyTransform(immediateFuture(1), function);
        ExecutionException expected =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        spy.verifyCallCount(2);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform_exception() throws Exception {
        RuntimeException exception = new RuntimeException("deliberate");
        Function<Integer, String> function =
            unused -> {
              throw exception;
            };
        Future<String> transformed = lazyTransform(immediateFuture(1), function);
        ExecutionException expected =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *
     * @author Ben Yu
     * @since 14.0
     */
    // TODO: Switch to JUnit 4 and use @Parameterized and @BeforeClass
    // Note: @Test annotations are deliberate, as some subclasses specify @RunWith(JUnit4).
    @GwtIncompatible
    @J2ktIncompatible
    @J2ObjCIncompatible // com.google.common.reflect.ClassPath
    @NullMarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  8. LICENSE

       8. Limitation of Liability. In no event and under no legal theory,
          whether in tort (including negligence), contract, or otherwise,
          unless required by applicable law (such as deliberate and grossly
          negligent acts) or agreed to in writing, shall any Contributor be
          liable to You for damages, including any direct, indirect, special,
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 16:29:02 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *
     * @author Ben Yu
     * @since 14.0
     */
    // TODO: Switch to JUnit 4 and use @Parameterized and @BeforeClass
    // Note: @Test annotations are deliberate, as some subclasses specify @RunWith(JUnit4).
    @GwtIncompatible
    @J2ktIncompatible
    @J2ObjCIncompatible // com.google.common.reflect.ClassPath
    @NullMarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        assertEquals(Lists.newArrayList("a"), new ArrayList<>(set));
      }
    
      public void testCreation_oneDuplicate() {
        // now we'll get the varargs overload
        @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication
        ImmutableSet<String> set =
            ImmutableSet.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "a");
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 14.1K bytes
    - Click Count (0)
Back to Top