- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 346 for display_name (0.1 sec)
-
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
} @Test @DisplayName("Test singleton instance") void testSingletonInstance() { SecurityAuditLogger logger1 = SecurityAuditLogger.getInstance(); SecurityAuditLogger logger2 = SecurityAuditLogger.getInstance(); assertSame(logger1, logger2, "SecurityAuditLogger should be a singleton"); } @Test @DisplayName("Test log authentication success")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
// Available if context is established and integrity is supported return this.established && this.integrity; } } @Nested @DisplayName("Happy path behavior") class HappyPath { @Test @DisplayName("All getters return configured values and MIC roundtrips") void testAllMethodsHappyPath() throws Exception { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
} /** * All wire‑format methods should return zero regardless of inputs. */ @Nested @DisplayName("Wire format method behaviour") class WireFormatMethods { @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE }) @DisplayName("writeSetupWireFormat returns 0 for all indices") void writeSetupWireFormatReturnsZero(int index) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
assertTrue(resp instanceof ServerMessageBlock2); } @Test @DisplayName("Should return correct OVERHEAD constant value") void testOverheadConstant() { // Then assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 16, Smb2ReadResponse.OVERHEAD); } @Test @DisplayName("Should initially have zero data length") void testInitialDataLength() { // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
} @Nested @DisplayName("Edge case values") class EdgeCases { @Test @DisplayName("Null name is allowed via mock") void nullName() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn(null); assertNull(mock.getName()); } @Test @DisplayName("Negative length is allowed via mock")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
} @Test @DisplayName("connectLogon accepts null context but still invokes") void connectLogon_withNull_isInvoked() throws Exception { // Act tree.connectLogon(null); // Assert - even null should be passed through to implementation verify(tree).connectLogon(null); } @Test @DisplayName("connectLogon propagates SmbException from implementation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mockito;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
} @Test @DisplayName("Constructor should handle null parent") void testConstructor_NullParent_ThrowsNPE() { // When & Then: Null parent should cause NullPointerException assertThrows(NullPointerException.class, () -> new NetServerEnumIterator(null, treeHandle, "*", 0, null)); } @Test @DisplayName("Constructor should handle null tree handle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
import java.io.IOException; import java.lang.reflect.Field; import java.net.UnknownHostException; import java.util.List; import java.util.Map; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
} @Test @DisplayName("isIPC is true for IPC$ or no share") void testIsIpc() { assertTrue(locator("smb://server/IPC$/").isIPC()); assertTrue(locator("smb://server/").isIPC()); assertFalse(locator("smb://server/share/").isIPC()); } @Test @DisplayName("Type detection covers filesystem/share/IPC/workgroup/server")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0)