Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for wrong (4.56 sec)

  1. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

        public void testHandleGuidInvalidBytes() {
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[8]); // Wrong length
            });
    
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[20]); // Wrong length
            });
        }
    
        @Test
        public void testHandleGuidEqualsAndHashCode() {
            UUID uuid = UUID.randomUUID();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            assertThrows(IllegalArgumentException.class, () -> {
                new DurableHandleReconnect(new byte[8]); // Wrong length
            });
    
            assertThrows(IllegalArgumentException.class, () -> {
                new DurableHandleReconnect(new byte[20]); // Wrong length
            });
        }
    
        @Test
        public void testHandleType() {
            assertEquals(0, HandleType.NONE.getValue());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

            // Arrange: Build sequence with invalid version and otherwise valid tags
            ASN1EncodableVector v = new ASN1EncodableVector();
            v.add(new DERTaggedObject(true, 0, new ASN1Integer(badPvno))); // wrong pvno
            v.add(new DERTaggedObject(true, 1, new ASN1Integer(Integer.parseInt(KerberosConstants.KERBEROS_AP_REQ))));
            v.add(new DERTaggedObject(true, 2, new DERBitString(new byte[] { 0x00 })));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

         *
         * @throws IOException if an I/O error occurs
         */
        @Test
        void testConstructorWithMissingApplicationTag() throws IOException {
            // Create inner content with OID and magic bytes but wrong tag after
            ByteArrayOutputStream innerContent = new ByteArrayOutputStream();
            ASN1ObjectIdentifier kerberosOid = new ASN1ObjectIdentifier(KerberosConstants.KERBEROS_OID);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
            // When/Then - Should handle invalid buffers gracefully
            assertDoesNotThrow(() -> {
                BufferCache.releaseBuffer(nullBuffer); // Should ignore null
                BufferCache.releaseBuffer(wrongSizeBuffer); // Should ignore wrong size
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/exception/IllegalBlockSizeRuntimeException.java

    import javax.crypto.IllegalBlockSizeException;
    
    /**
     * Signals that this exception has been thrown when a block cipher is supplied with input data whose length is not a multiple of the cipher's block size, or that has been padded to the wrong length.
     * @author shinsuke
     */
    public class IllegalBlockSizeRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

        @Test
        @DisplayName("Should reject null key")
        void testNullKey() {
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(null));
        }
    
        @Test
        @DisplayName("Should reject wrong size key")
        void testWrongSizeKey() {
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[15]));
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[17]));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                IllegalStateException exception = assertThrows(IllegalStateException.class, () -> {
                    testRequest.encode(buffer, 0);
                });
    
                assertTrue(exception.getMessage().contains("Wrong size calculation"));
            }
        }
    
        // Test implementation classes
        private static class TestServerMessageBlock2Request extends ServerMessageBlock2Request<TestServerMessageBlock2Response> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacTest.java

            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testInvalidVersion() throws IOException {
            // Create minimal PAC structure with wrong version
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 0); // buffer count = 0
            writeLittleEndianInt(baos, 99); // invalid version
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/MIENameTest.java

                    // Too short for TOK_ID + MECH_OID_LEN
                    Arguments.of("too short header", new byte[] { 0x04, 0x01, 0x00 }, IllegalArgumentException.class),
    
                    // Wrong TOK_ID
                    Arguments.of("wrong TOK_ID", new byte[] { 0x00, 0x02, 0x00, 0x01 }, IllegalArgumentException.class),
    
                    // OID length claims more than available
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top