Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 342 for IllegalArgumentException (0.07 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.adjacentNodes(N1)));
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.predecessors(N1)));
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.successors(N1)));
        assertNodeNotInGraphErrorMessage(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/UUIDTest.java

            void testConstructorWithStringInvalidCharacter() {
                // Arrange
                String invalidUuid = "00112233-4455-6677-8899-AABBCCDDEXX"; // 'X' is invalid
    
                // Act & Assert
                assertThrows(IllegalArgumentException.class, () -> new UUID(invalidUuid),
                        "Should throw IllegalArgumentException for invalid character in UUID string");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          """.trimMargin()
        try {
          decode(certificatePem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("string does not include a private key")
        }
        try {
          decode(pkcs8Pem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("string does not include a certificate")
        }
        try {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/InputValidatorTest.java

            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(null, 0, dst, 0, 10));
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, 0, null, 0, 10));
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, -1, dst, 0, 10));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            }
    
            @Test
            @DisplayName("Should create exception with root cause")
            void testConstructorWithRootCause() {
                Exception rootCause = new IllegalArgumentException("Root cause exception");
                TransportException exception = new TransportException(rootCause);
    
                assertNotNull(exception);
                assertNull(exception.getMessage());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

        }
    
        @Test
        void testMapInformationLevelWithInvalidLevel() {
            // Test invalid information level
            IllegalArgumentException exception =
                    assertThrows(IllegalArgumentException.class, () -> Trans2QueryPathInformation.mapInformationLevel(999));
            assertTrue(exception.getMessage().contains("Unsupported information level"));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

        }
    
        @Test
        public void testMemoryBasedCacheConstructorWithNull() {
            try {
                new ContentCache((byte[]) null);
                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
                assertTrue(e.getMessage().contains("data must not be null"));
            }
        }
    
        @Test
        public void testMemoryBasedCacheDefensiveCopy() throws IOException {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

      public void testCheckArgument_nullMessage_failure() {
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null));
        assertThat(expected).hasMessageThat().isEqualTo("null");
      }
    
      public void testCheckArgument_nullMessageWithArgs_failure() {
        IllegalArgumentException e =
            assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null, "b", "d"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(1, 2, "A");
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.unordered(1, 2)));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
        e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.unordered(2, 1)));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
                () -> networkAsMutableNetwork.addEdge(N1, N2, EDGE_NOT_IN_GRAPH));
        assertThat(e).hasMessageThat().contains(ERROR_PARALLEL_EDGE);
        e =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 19K bytes
    - Viewed (0)
Back to top