- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 793 for correcta (0.08 seconds)
-
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
@Test @DisplayName("Should create request with correct command type") void testConstructorSetsCorrectCommand() throws Exception { // Given Configuration mockConfig = mock(Configuration.class); // When Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig); // Then - verify command is set correctly using reflectionCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
assertTrue(cause instanceof SMBProtocolDecodingException, "Actual cause should be SMBProtocolDecodingException"); assertEquals("Structure size is not 16", cause.getMessage(), "Should have correct error message"); } @Test @DisplayName("Should write empty bytes for wire format") void testWriteBytesWireFormat() throws Exception { // Given
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
class ConstantsTests { @Test @DisplayName("Should have correct FLAGS_NAME_LIST_REFERRAL value") void testFlagsNameListReferralConstant() { assertEquals(0x0002, Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL); } @Test @DisplayName("Should have correct FLAGS_TARGET_SET_BOUNDARY value") void testFlagsTargetSetBoundaryConstant() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
assertEquals(2000000L, basicInfo.getLastWriteTime()); assertEquals(0L, basicInfo.getSize()); // Basic info always returns 0 for size } @Test @DisplayName("Should generate correct toString for basic info") void testBasicInfoToString() { Trans2QueryPathInformationResponse.SmbQueryFileBasicInfo basicInfo = response.new SmbQueryFileBasicInfo(); basicInfo.attributes = 0x20;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
} @Test void testConstructor() { // Verify that the response is created with correct configuration and buffer assertNotNull(response); // Use reflection to verify the outputBuffer is set correctly try { Field outputBufferField = TransTransactNamedPipeResponse.class.getDeclaredField("outputBuffer");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
result = response.readParametersWireFormat(smallBuffer, 0, -1); assertEquals(0, result); } @Test @DisplayName("Test command type is correct") void testCommandType() { // Verify that the command is not set in constructor (defaults to 0) assertEquals(0, response.getCommand()); // Verify we can change the subcommand
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// When int bytesWritten = response.writeBytesWireFormat(buffer, 0); // Then assertEquals(0, bytesWritten); } @Test @DisplayName("Should create correct context types") void testCreateContext() { // Test encryption context NegotiateContextResponse enc = Smb2NegotiateResponse.createContext(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
assertNotNull(middle, "Middle tree should not be null"); assertNotNull(inner, "Inner tree should not be null"); assertSame(middleTree, middle, "Should return correct middle tree"); assertSame(innerTree, inner, "Should return correct inner tree"); } /** * Test for unwrap with incompatible type. * Verifies behavior when trying to unwrap to an incompatible type. */ @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/MimeMapTest.java
mimeMap = new MimeMap(); } @Nested @DisplayName("getMimeType with extension only") class GetMimeTypeWithExtension { @Test @DisplayName("Should return correct mime type for known extensions") void testKnownExtensions() throws IOException { assertEquals("application/pdf", mimeMap.getMimeType("pdf"));
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
// Then: Should parse correctly assertNotNull(binding); assertEquals(expectedProto, binding.getProto()); assertEquals(expectedServer, binding.getServer()); assertEquals(expectedEndpoint, binding.getEndpoint()); } @ParameterizedTest @DisplayName("Should handle IPv6 addresses correctly")Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0)