- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 705 for stesti (6.09 sec)
-
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
assertEquals(expectedTimestamp, avTimestamp.getTimestamp()); } /** * Test getTimestamp method with a negative timestamp (though timestamps are usually positive). * This tests the underlying SMBUtil.readInt8 behavior. */ @Test public void testGetTimestampNegative() { long expectedTimestamp = -1L; // Represents all bits set to 1 for an 8-byte long byte[] rawBytes = new byte[8];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
} @Nested @DisplayName("Interface Methods Tests") class InterfaceMethodsTests { @Test @DisplayName("Test getAction method with mock") void testGetAction() { // Setup mock behavior when(mockFileNotifyInfo.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); // Test int action = mockFileNotifyInfo.getAction();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/ConfigTest.java
testProperties.setProperty("test.bool.false", "false"); testProperties.setProperty("test.host", "localhost"); testProperties.setProperty("test.invalid.int", "abc"); } @Test @DisplayName("Should get integer property with default value") void testGetIntWithDefault() { assertEquals(123, Config.getInt(testProperties, "test.int", 0));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleGuidTest.java
/* * © 2025 CodeLibs, Inc. */ package jcifs.tests.persistent; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.UUID; import org.junit.jupiter.api.Test; import jcifs.internal.smb2.persistent.HandleGuid; /** * Test class for HandleGuid functionality */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
// Simple test implementation - not used in these tests return 0; } } @Nested @DisplayName("Interface Contract Tests") class InterfaceContractTests { @Test @DisplayName("Should implement FileSystemInformation interface") void shouldImplementFileSystemInformation() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
} // ---------------- Static read tests ----------------- @Test @DisplayName("readULong correctly interprets little endian") void testReadULong() { byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 }; int result = NtlmMessage.readULong(a, 0); assertEquals(0x04030201, result, "ULong should be little‑endian"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
} @Test @DisplayName("Should accept empty file ID in constructor") void testConstructorWithEmptyFileId() { byte[] emptyFileId = new byte[16]; assertDoesNotThrow(() -> new Smb2WriteRequest(mockConfig, emptyFileId)); } } @Nested @DisplayName("FileId Tests") class FileIdTests { @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/DfsReferralDataTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Test class for DfsReferralData interface functionality */ @DisplayName("DfsReferralData Interface Tests") class DfsReferralDataTest extends BaseTest { @Mock private DfsReferralData mockReferralData; @Test @DisplayName("Should define interface methods")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
import jcifs.CIFSException; import jcifs.Configuration; import jcifs.ResourceNameFilter; import jcifs.SmbConstants; import jcifs.SmbResource; import jcifs.SmbResourceLocator; /** * Unit tests for NetServerEnumIterator. * Tests focus on constructor validation and basic iterator contract. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class NetServerEnumIteratorTest { @MockRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
class WriteBytesWireFormatTests { @Test @DisplayName("Should return 0 for write bytes") void testWriteBytesWireFormat() { // Given byte[] dst = new byte[100]; int dstIndex = 0; // When int result = response.writeBytesWireFormat(dst, dstIndex); // Then assertEquals(0, result); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0)