Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,990 for SHOULD (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                // Should encode successfully at the beginning
                int encoded = context.encode(smallBuffer, 0);
                assertEquals(6, encoded);
    
                // Should handle encoding at the end of buffer correctly
                assertDoesNotThrow(() -> context.encode(smallBuffer, 4));
            }
    
            @Test
            @DisplayName("Should preserve data integrity through encode/decode cycle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

                // Assert - verify inheritance chain
                assertTrue(msg instanceof samr.SamrConnect2, "Should extend SamrConnect2");
                assertTrue(msg instanceof DcerpcMessage, "Should extend DcerpcMessage");
                assertTrue(msg instanceof NdrObject, "Should extend NdrObject");
            }
    
            @Test
            @DisplayName("should inherit getOpnum method")
            void testGetOpnumMethod() {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/ByteEncodableTest.java

            int encodedLen = encodable.encode(dest, 0);
    
            // Verify encoded length
            assertEquals(3, encodedLen, "Encoded length should be equal to the specified length");
    
            // Verify content
            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
        void testEncodeWithOffset() {
            // Test encoding with a destination offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            }
    
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Try to execute - should be blocked with CIFSException
            CIFSException exception = assertThrows(CIFSException.class, () -> {
                circuitBreaker.executeWithCircuitBreaker(() -> "should not execute");
            }, "Circuit breaker should throw CIFSException when open");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  5. tests/scan_test.go

    		t.Fatalf("Scan into struct should work, got %#v, should %#v", res, user3)
    	}
    
    	DB.Table("users").Select("id, name, age").Where("id = ?", user2.ID).Scan(&res)
    	if res.ID != user2.ID || res.Name != user2.Name || res.Age != int(user2.Age) {
    		t.Fatalf("Scan into struct should work, got %#v, should %#v", res, user2)
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/UnicodeStringTest.java

            assertEquals(2, emptyUnicodeStringTrue.length, "Length should be 2 for empty string with zterm");
            assertEquals(2, emptyUnicodeStringTrue.maximum_length, "Maximum length should be 2 for empty string with zterm");
            assertNotNull(emptyUnicodeStringTrue.buffer, "Buffer should not be null for empty string with zterm");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

                int modifiers = field.getModifiers();
                assertTrue(Modifier.isPublic(modifiers), "Field " + field.getName() + " should be public");
                assertTrue(Modifier.isStatic(modifiers), "Field " + field.getName() + " should be static");
                assertTrue(Modifier.isFinal(modifiers), "Field " + field.getName() + " should be final");
            }
        }
    
        @Test
        @DisplayName("Test constant values are unique")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            assertFalse(message.getFlag(0b0001), "Flag 0b0001 should not be set.");
    
            message.setFlags(0); // No flags set
            assertFalse(message.getFlag(0b1000), "No flags should be set.");
        }
    
        @Test
        void testSetFlag() {
            // Test setting a flag
            message.setFlags(0);
            message.setFlag(0b0001, true);
            assertEquals(0b0001, message.getFlags(), "Flag 0b0001 should be set.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        }
    
        @Test
        @DisplayName("Should get local host name")
        void testGetLocalName() {
            // When
            NetbiosName localName = nameServiceClient.getLocalName();
    
            // Then
            assertNotNull(localName, "Local name should not be null");
            assertTrue(localName.getName().length() > 0, "Local name should not be empty");
        }
    
        @Test
        @DisplayName("Should get unknown name")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        }
    
        @Test
        @DisplayName("Constructor should initialize TransWaitNamedPipeResponse")
        void testConstructor() {
            // Assert
            assertNotNull(response);
            // Verify parent class is properly initialized
            assertTrue(response instanceof SmbComTransactionResponse);
        }
    
        @Test
        @DisplayName("writeSetupWireFormat should return 0")
        void testWriteSetupWireFormat() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top