- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,214 for correct (0.03 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
private TestRequestWithPath testImplementation; @BeforeEach void setUp() { testImplementation = new TestRequestWithPath(); } @Test @DisplayName("Test getPath returns correct path") void testGetPath() { // Test with mock String expectedPath = "/share/folder/file.txt"; when(requestWithPath.getPath()).thenReturn(expectedPath);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
verify(mockResponse, times(1)).getErrorCode(); } @Test void testSetMid() { long mid = 12345L; mockResponse.setMid(mid); // Verify that the method was called with the correct argument verify(mockResponse, times(1)).setMid(mid); } @Test void testGetMid() { long mid = 54321L; when(mockResponse.getMid()).thenReturn(mid);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java
public class FessActionValidatorTest extends UnitFessTestCase { public void test_constructor() { // Test basic class structure without complex mocking assertEquals("FessActionValidator should be in correct package", "org.codelibs.fess.validation.FessActionValidator", FessActionValidator.class.getName()); } public void test_inheritance() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
testState = Smb2LeaseState.SMB2_LEASE_READ_WRITE; leaseContext = new LeaseV1CreateContextRequest(testKey, testState); } @Test @DisplayName("Should have correct context name") void testContextName() { assertArrayEquals("RqLs".getBytes(), leaseContext.getName()); assertEquals("RqLs", LeaseV1CreateContextRequest.CONTEXT_NAME); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
*/ package com.google.common.collect; import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.collect.SneakyThrows.sneakyThrow; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.TestExceptions.SomeCheckedException;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
import jcifs.internal.util.SMBUtil; /** * Test class for FsctlPipeWaitRequest */ class FsctlPipeWaitRequestTest { @Test @DisplayName("Test constructor with name only sets correct fields") void testConstructorWithNameOnly() { // Test with simple pipe name String pipeName = "TestPipe"; FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)