- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 330 for corretto (0.04 sec)
-
src/test/java/jcifs/pac/PacGroupTest.java
assertEquals(mockSid, pacGroup.getId(), "getId() should return the correct SID."); } /** * Test method for {@link jcifs.pac.PacGroup#getAttributes()}. */ @Test void testGetAttributes() { // Test the getAttributes method assertEquals(attributes, pacGroup.getAttributes(), "getAttributes() should return the correct attributes."); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
@Test @DisplayName("Should create correct response") void testCreateResponse() { // When Smb2ChangeNotifyResponse response = request.createResponse(mockContext, request); // Then assertNotNull(response); assertTrue(response instanceof Smb2ChangeNotifyResponse); } @Test @DisplayName("Should calculate correct size") void testSize() { // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test getInitialSize() returns the correct size. */ @Test void testGetInitialSize() { long expectedSize = 1024L; when(smbFileHandle.getInitialSize()).thenReturn(expectedSize); long actualSize = smbFileHandle.getInitialSize(); assertEquals(expectedSize, actualSize, "getInitialSize should return the correct initial file size.");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
@Test @DisplayName("Should create correct response type") void testCreateResponse() { Smb2EchoResponse response = echoRequest.createResponse(mockContext, echoRequest); assertNotNull(response); assertInstanceOf(Smb2EchoResponse.class, response); } @Test @DisplayName("Should create response with correct configuration")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java
mockPolicyHandle = mock(SamrPolicyHandle.class); testServer = "testServer"; testAccess = 0x02000000; // SAM_SERVER_CONNECT access right } @Test @DisplayName("Should construct with correct parameters") void constructorShouldInitializeFieldsCorrectly() { // When MsrpcSamrConnect2 msrpcSamrConnect2 = new MsrpcSamrConnect2(testServer, testAccess, mockPolicyHandle); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
class AddressTest extends BaseTest { @Mock private CIFSContext mockContext; @Mock private Address mockAddress; @Test @DisplayName("Address interface should define correct method signatures") void testInterfaceContract() { // Given Address address = mockAddress; // When & Then - verify interface methods exist and can be called assertDoesNotThrow(() -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbConnectionTest.java
* Tests the batch limit configuration for various SMB commands. */ public class SmbConnectionTest { /** * Test that getBatchLimit returns correct values for different commands */ @Test @DisplayName("getBatchLimit returns correct values for different SMB commands") public void testBatchLimitForDifferentCommands() throws CIFSException { Properties props = new Properties();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] buffer = new byte[100]; int dstIndex = 10; int bytesWritten = info.encode(buffer, dstIndex); // Verify replaceIfExists flag at correct position assertEquals(1, buffer[dstIndex]); // Verify file name length at correct position int nameLength = SMBUtil.readInt4(buffer, dstIndex + 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertTrue(resp instanceof ServerMessageBlock2); assertTrue(resp instanceof TreeConnectResponse); } @Test @DisplayName("Should return correct share type constants") void testShareTypeConstants() { // Then assertEquals((byte) 0x1, Smb2TreeConnectResponse.SMB2_SHARE_TYPE_DISK);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
class InterfaceConstantsTests { @Test @DisplayName("Should have correct SMB_INFO_ALLOCATION constant value") void testSmbInfoAllocationConstant() { assertEquals((byte) -1, FileSystemInformation.SMB_INFO_ALLOCATION); } @Test @DisplayName("Should have correct FS_SIZE_INFO constant value") void testFsSizeInfoConstant() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0)