- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 1,100 for correctly (0.21 seconds)
-
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
@Test @DisplayName("Should correctly implement SmbBasicFileInfo interface") void testSmbBasicFileInfoInterface() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[60]; SMBUtil.writeInt2(60, buffer, 0); // Use proper millisecond times that will be converted correctly long creationTimeMs = System.currentTimeMillis();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 26.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
} } @Nested @DisplayName("Encode Tests") class EncodeTests { @Test @DisplayName("Should encode simple path correctly") void testEncodeSimplePath() { String path = "\\\\server\\share"; int maxReferralLevel = 3; buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/test/java/jcifs/MsrpcDfsRootEnumTest.java
private MsrpcDfsRootEnum dfsRootEnum; @BeforeEach void setUp() { dfsRootEnum = new MsrpcDfsRootEnum(TEST_SERVER); } @Test @DisplayName("Constructor should initialize all fields correctly") void testConstructorInitialization() { // Verify level is set to 200 for DFS root enumeration assertEquals(200, dfsRootEnum.level); // Verify DCE/RPC message propertiesCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.9K 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: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
} @Test @DisplayName("Should return correct information class") void testGetFileSystemInformationClass() { assertEquals(FileSystemInformation.SMB_INFO_ALLOCATION, smbInfoAllocation.getFileSystemInformationClass()); } @Test @DisplayName("Should decode buffer correctly") void testDecode() throws SMBProtocolDecodingException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
class GetterTests { @Test @DisplayName("getPtype should return correct packet type") void testGetPtype() { message.ptype = DcerpcConstants.RPC_PT_REQUEST; assertEquals(DcerpcConstants.RPC_PT_REQUEST, message.getPtype()); } @Test @DisplayName("getFlags should return correct flags") void testGetFlags() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.3K bytes - Click Count (0) -
src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java
// Verify that the super constructor was called with the correct arguments // Note: Mockito cannot directly verify super constructor calls. // We assume if the object is created, the super constructor was called. // We can verify the state of the object after construction. // Verify ptype and flags are set correctly assertEquals(0, policy.getPtype(), "ptype should be 0");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/HandlerTest.java
// Act & Assert assertThrows(NullPointerException.class, () -> handler.openConnection(null)); } @Test @DisplayName("URL created with handler parses SMB URL correctly") void testUrlCreationWithHandler() throws Exception { // Act - Create various SMB URLs using the handler URL url1 = new URL(null, "smb://host/share", handler);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
customRequest.setFileId(testFileId); // Then assertArrayEquals(testFileId, customRequest.getFileId(), "Custom implementation should store file ID correctly"); assertEquals(1, customRequest.getSetCount(), "Should track set count correctly"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
assertThat(network.outEdges(N1)).containsExactly(E12); // Edge direction handled correctly assertThat(network.outEdges(N2)).isEmpty(); } @Test public void predecessors_oneEdge() { addEdge(N1, N2, E12); assertThat(network.predecessors(N2)).containsExactly(N1); // Edge direction handled correctly assertThat(network.predecessors(N1)).isEmpty(); } @Test
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 21.3K bytes - Click Count (0)