Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 335 for IllegalStateException (0.19 sec)

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

      }
    
      public void testFailOnExceptionFromStartUp() {
        TestService service = new TestService();
        service.startUpException = new Exception();
        IllegalStateException e =
            assertThrows(IllegalStateException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isEqualTo(service.startUpException);
        assertEquals(0, service.numberOfTimesRunCalled.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        ThrowOnStartUpService service = new ThrowOnStartUpService();
        assertFalse(service.startUpCalled);
    
        service.startAsync();
        IllegalStateException expected =
            assertThrows(IllegalStateException.class, () -> service.awaitRunning());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        executionThread.join();
    
        assertTrue(service.startUpCalled);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(b);
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractService.java

            // Handle this specially so that we can include the failureCause, if there is one.
            throw new IllegalStateException(
                "Expected the service " + this + " to be " + expected + ", but the service has FAILED",
                failureCause());
          }
          throw new IllegalStateException(
              "Expected the service " + this + " to be " + expected + ", but was " + actual);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Service.java

       *
       * @throws IllegalStateException if the service reaches a state from which it is not possible to
       *     enter the {@link State#RUNNING} state. e.g. if the {@code state} is {@code
       *     State#TERMINATED} when this method is called then this will throw an IllegalStateException.
       * @since 15.0
       */
      void awaitRunning();
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(b);
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        @Override
        protected void doStart() {
          notifyFailed(new IllegalStateException("start failure"));
        }
      }
    
      private static class FailRunService extends NoOpService {
        @Override
        protected void doStart() {
          super.doStart();
          notifyFailed(new IllegalStateException("run failure"));
        }
      }
    
      private static class FailStopService extends NoOpService {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/HMACT64.java

                ipad[i] = IPAD;
                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
            this.ipad = hmac.ipad;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  9. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

      public void start() throws Exception {
        if (mockWebServer != null) throw new IllegalStateException();
    
        mockWebServer = new MockWebServer();
        mockWebServer.setDispatcher(this);
        mockWebServer.start(slackApi.port);
      }
    
      public HttpUrl newAuthorizeUrl(String scopes, String team, Listener listener) {
        if (mockWebServer == null) throw new IllegalStateException();
    
        ByteString state = randomToken();
        synchronized (this) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testSampleVariance() {
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.sampleVariance());
        assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.sampleVariance());
        assertThrows(IllegalStateException.class, () -> ONE_VALUE_STATS.sampleVariance());
        assertThat(TWO_VALUES_STATS.sampleVariance())
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
Back to top