Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IllegalStateException (0.23 sec)

  1. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

              directExecutor());
        } else {
          switch (state.get()) {
            case SUBSUMED:
              throw new IllegalStateException(
                  "Cannot call finishToFuture() after deriving another step");
    
            case WILL_CREATE_VALUE_AND_CLOSER:
              throw new IllegalStateException(
                  "Cannot call finishToFuture() after calling finishToValueAndCloser()");
    
            case WILL_CLOSE:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        val call = client.newCall(request)
        val response = call.execute()
        response.body.close()
        assertFailsWith<IllegalStateException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Already Executed")
        }
        assertFailsWith<IllegalStateException> {
          call.enqueue(callback)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Already Executed")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build(),
        )
        val response1 = get(server.url("/"))
        val source = response1.body.source()
        assertThat(source.readUtf8(5)).isEqualTo("ABCDE")
        source.close()
        assertFailsWith<IllegalStateException> {
          source.readByte()
        }
        assertThat(cache.writeAbortCount()).isEqualTo(1)
        assertThat(cache.writeSuccessCount()).isEqualTo(0)
        val response2 = get(server.url("/"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

                },
            ),
          )
        assertThat(readAscii(response.body.byteStream(), Int.MAX_VALUE))
          .isEqualTo("abc")
        assertFailsWith<IllegalStateException> {
          sinkReference.get().flush()
        }
        assertFailsWith<IllegalStateException> {
          sinkReference.get().write("ghi".toByteArray())
          sinkReference.get().emit()
        }
      }
    
      @Test
      fun getHeadersThrows() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            inCompletionOrder(
                ImmutableList.<ListenableFuture<Long>>of(future1, future2, future3, future4, future5));
        future2.set(1L);
        future5.setException(new IllegalStateException("2L"));
        future1.set(3L);
        future3.set(4L);
        future4.set(5L);
    
        long expectedResult = 1L;
        for (ListenableFuture<Long> future : futures) {
          if (expectedResult != 2) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            inCompletionOrder(
                ImmutableList.<ListenableFuture<Long>>of(future1, future2, future3, future4, future5));
        future2.set(1L);
        future5.setException(new IllegalStateException("2L"));
        future1.set(3L);
        future3.set(4L);
        future4.set(5L);
    
        long expectedResult = 1L;
        for (ListenableFuture<Long> future : futures) {
          if (expectedResult != 2) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

       * {@link java.util.stream.Collectors#toMap(java.util.function.Function,
       * java.util.function.Function) Collectors.toMap(Function, Function)}, which throws an {@code
       * IllegalStateException}.)
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
      @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top