Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 269 for IllegalStateException (0.09 sec)

  1. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

        public void test_throwAndCatchWithCause() {
            // Test throwing and catching the exception with cause
            String expectedMessage = "SAML assertion validation failed";
            Exception expectedCause = new IllegalStateException("Invalid SAML response");
    
            try {
                throw new SsoProcessException(expectedMessage, expectedCause);
            } catch (SsoProcessException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/BaseEncodingTest.java

      }
    
      public void testBase64CannotUpperCase() {
        assertThrows(IllegalStateException.class, () -> base64().upperCase());
      }
    
      public void testBase64CannotLowerCase() {
        assertThrows(IllegalStateException.class, () -> base64().lowerCase());
      }
    
      public void testBase64CannotIgnoreCase() {
        assertThrows(IllegalStateException.class, () -> base64().ignoreCase());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        ByteSource checker =
            new ByteSource() {
              @Override
              public InputStream openStream() throws IOException {
                if (counter[0]++ != 0) {
                  throw new IllegalStateException("More than one source open");
                }
                return new FilterInputStream(source.openStream()) {
                  @Override
                  public void close() throws IOException {
                    super.close();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/api/WebApiRequestTest.java

                return null;
            }
    
            @Override
            public AsyncContext startAsync() throws IllegalStateException {
                return null;
            }
    
            @Override
            public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException {
                return null;
            }
    
            @Override
            public boolean isAsyncStarted() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteArrayDataInput.java

     *
     * <p><b>Warning:</b> The caller is responsible for not attempting to read past the end of the
     * array. If any method encounters the end of the array prematurely, it throws {@link
     * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
     * of the supertype's contract, which specifies a checked exception.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @J2ktIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

      @Test
      fun firstConnectionCrashesWithUncheckedException() {
        val plan0 = routePlanner.addPlan()
        plan0.tcpConnectThrowable = IllegalStateException("boom!")
        routePlanner.addPlan() // This plan should not be used.
    
        taskRunner.newQueue().execute("connect") {
          assertFailsWith<IllegalStateException> {
            finder.find()
          }.also { expected ->
            assertThat(expected).hasMessage("boom!")
          }
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        assertFailsWith<IllegalStateException> {
          Request
            .Builder()
            .url("https://square.com/")
            .gzip()
            .build()
        }.also {
          assertThat(it).hasMessage("cannot gzip a request that has no body")
        }
      }
    
      @Test
      fun cannotGzipWithAnotherContentEncoding() {
        assertFailsWith<IllegalStateException> {
          Request
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

            Thread.currentThread().interrupt() // Retain interrupted status.
          }
        }
    
        if (!::bytes.isInitialized) {
          // May have failed with an IOException
          throw IllegalStateException("Unable to load $path resource.").apply {
            initCause(readFailure)
          }
        }
      }
    
      abstract val path: Any
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/ResourceManagerTest.java

            ResourceManager.ManagedResource<TestResource> managed = resourceManager.manage(resource);
    
            managed.close();
            assertTrue(resource.isClosed());
    
            assertThrows(IllegalStateException.class, managed::get);
        }
    
        @Test
        @DisplayName("Test resource unregistration")
        void testResourceUnregistration() {
            TestResource resource = new TestResource("test5");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/HMACT64Test.java

                doThrow(new RuntimeException("Test Exception")).when(mockMd5).digest(any(byte[].class), anyInt(), anyInt());
    
                HMACT64 hmac = new HMACT64(TEST_KEY);
                assertThrows(IllegalStateException.class, () -> hmac.engineDigest(new byte[10], 0, 10));
            }
        }
    
        @Test
        void testClone() throws NoSuchAlgorithmException, CloneNotSupportedException {
            // Test clone() method
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top