- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 354 for displayName (0.26 sec)
-
src/test/java/jcifs/smb/NtStatusTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Test class for NtStatus constants */ @DisplayName("NtStatus Tests") class NtStatusTest { @Test @DisplayName("Should define well-known NT status constants") void testWellKnownStatusConstants() {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/FileBasicInfoTest.java
assertEquals(TEST_ATTRIBUTES, info.getAttributes()); } @Test @DisplayName("Test getFileInformationLevel returns correct value") void testGetFileInformationLevel() { assertEquals(FileInformation.FILE_BASIC_INFO, fileBasicInfo.getFileInformationLevel()); } @Test @DisplayName("Test getSize always returns 0") void testGetSize() { // Default instance
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/ACETest.java
* Achieves 100% coverage of the ACE interface contract. */ @DisplayName("ACE Interface Comprehensive Tests") class ACETest { @Nested @DisplayName("File Access Constants Tests") class FileAccessConstantsTests { @Test @DisplayName("Should have correct values for file access constants") void shouldHaveCorrectFileAccessConstants() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
@DisplayName("writeInt2 should handle various values") void testWriteInt2Various(int value) { byte[] dst = new byte[4]; SessionServicePacket.writeInt2(value, dst, 0); assertEquals((byte) ((value >> 8) & 0xFF), dst[0]); assertEquals((byte) (value & 0xFF), dst[1]); } @Test @DisplayName("writeInt2 with offset should write at correct position")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
} /** * Nested class for testing buffer operations */ @Nested @DisplayName("Buffer Operations Tests") class BufferOperationsTests { @Test @DisplayName("Test write operations with empty buffer") public void testWriteOperationsWithEmptyBuffer() { // GivenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} @Test @DisplayName("Constructor: invalid mode throws IllegalArgumentException") void constructor_invalidMode_throws() { SmbFile file = mock(SmbFile.class); assertThrows(IllegalArgumentException.class, () -> new SmbRandomAccessFile(file, "badmode")); } @Test @DisplayName("open(): acquires and releases handle (no I/O)")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
/* ------------------------------------------------------------------ */ @Test @DisplayName("Construct with a valid configuration - should not throw") void testConstructionWithValidConfiguration() { assertDoesNotThrow(() -> new SmbComSeekResponse(mockConfig)); } @Test @DisplayName("getOffset before any read - should return zero") void testOffsetInitiallyZero() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
import java.io.IOException; import java.security.SecureRandom; import java.util.LinkedList; import java.util.List; 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.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
@DisplayName("Should handle various NTLM flags") void testVariousNTLMFlags(int flag) { // When Type1Message type1 = new Type1Message(mockContext, flag, null, null); // Then assertTrue((type1.getFlags() & flag) != 0); } @Test @DisplayName("Should include NTLMSSP signature")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.mockito.Mock; import jcifs.BaseTest; import jcifs.Configuration; import jcifs.DialectVersion; import jcifs.ResolverType; /** * Comprehensive test suite for DelegatingConfiguration class. * Tests the delegation pattern and ensures all methods properly delegate. */ @DisplayName("DelegatingConfiguration Tests")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)