- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 346 for display_name (0.11 sec)
-
src/test/java/jcifs/util/EncdecTest.java
import java.util.Date; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import jcifs.BaseTest; /** * Test class for Encdec utility functionality */ @DisplayName("Encdec Utility Tests") class EncdecTest extends BaseTest { @Test @DisplayName("Should encode and decode 16-bit integers")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
} @Test @DisplayName("Test unsupported hash algorithm") public void testUnsupportedHashAlgorithm() { byte[] salt = preauthService.generatePreauthSalt(); assertThrows(CIFSException.class, () -> { preauthService.initializeSession("test", salt, 0xFF); // Unsupported algorithm }); } @Test @DisplayName("Test update on non-existent session")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
} @Test @DisplayName("getSession returns underlying session from tree connection") void getSessionReturnsUnderlying() { // Verifies getSession() exposes the session provided by the connection assertSame(session, handle.getSession()); verify(treeConnection).getSession(); } @Test @DisplayName("ensureDFSResolved forwards to tree connection with locator")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/RequestParamTest.java
@ParameterizedTest @EmptySource @DisplayName("valueOf(\"\") throws IllegalArgumentException for empty input") void valueOfRejectsEmpty(String empty) { assertThrows(IllegalArgumentException.class, () -> RequestParam.valueOf(empty)); } // Invalid: null is not allowed for valueOf @ParameterizedTest @NullSource @DisplayName("valueOf(null) throws NullPointerException")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
// Assert assertNotNull(resp, "Response instance should be created"); } @Nested @DisplayName("writeBytesWireFormat") class WriteBytesWireFormat { @ParameterizedTest @ValueSource(ints = { -10, -1, 0, 1, 42 }) @DisplayName("Returns 0 regardless of dst and index") void returnsZero_forVariousIndexes(int index) { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java
import static org.mockito.Mockito.mock; import java.lang.reflect.Field; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.dcerpc.DcerpcConstants; import jcifs.dcerpc.DcerpcMessage; @DisplayName("MsrpcSamrConnect2 Tests") public class MsrpcSamrConnect2Test { private SamrPolicyHandle mockPolicyHandle; private String testServer;
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/smb1/net/NetShareEnumTest.java
} @Test @DisplayName("Test constructor with mock configuration") void testConstructorWithMockConfig() { netShareEnum = new NetShareEnum(mockConfig); assertNotNull(netShareEnum); assertEquals("\\PIPE\\LANMAN", getFieldValue(netShareEnum, "name")); verify(mockConfig).getTransactionBufferSize(); } @Test @DisplayName("Test DESCR constant value")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
response = new NtTransQuerySecurityDescResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with null security descriptor") void testConstructor() { assertNotNull(response); assertNull(response.getSecurityDescriptor()); } @Test @DisplayName("Test writeSetupWireFormat returns 0") void testWriteSetupWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
return new Handler(ctx); } @Test @DisplayName("getDefaultPort returns SMB default port") void testGetDefaultPort() { // Arrange Handler handler = newHandler(); // Act & Assert assertEquals(SmbConstants.DEFAULT_PORT, handler.getDefaultPort(), "Default port should match SmbConstants"); } @Test @DisplayName("openConnection returns SmbFile using provided CIFSContext")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
class SmbComLogoffAndXTest { @Test @DisplayName("constructor accepts null andx") void constructorWithNullAndx() { SmbComLogoffAndX msg = new SmbComLogoffAndX(null); assertNotNull(msg, "Message must not be null after construction"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5, -1, 10 }) @DisplayName("writeParameterWordsWireFormat always returns 0")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0)