- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 351 for DisplayName (0.06 sec)
-
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
} @Test @DisplayName("Test default constructor creates empty SecurityDescriptor") void testDefaultConstructor() { SecurityDescriptor sd = new SecurityDescriptor(); assertEquals(0, sd.getType()); assertNull(sd.getAces()); assertNull(sd.getOwnerUserSid()); assertNull(sd.getOwnerGroupSid()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
} @Test @DisplayName("Close delegates to underlying stream") void closeDelegatesToUnderlyingStream(@Mock InputStream mockIn) throws IOException { SocketInputStream sis = new SocketInputStream(mockIn); sis.close(); verify(mockIn).close(); } @Test @DisplayName("Read array delegates to read with offset and length")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockTree.getTreeId()).thenReturn(1L); when(mockFile.getType()).thenReturn(SmbConstants.TYPE_FILESYSTEM); } @Nested @DisplayName("Happy path") class HappyPath { @Test @DisplayName("readDirect over SMB2 returns bytes read and uses current offset") void readDirectSmb2Happy() throws Exception { SmbFileInputStream in = newStream();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
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/smb1/smb1/SmbExceptionTest.java
*/ @Test @DisplayName("Root cause propagation") void testRootCausePropagation() { Throwable root = mock(Throwable.class); SmbException ex = new SmbException(0, root); assertSame(root, ex.getRootCause()); } /** * Verify that the string-ctor sets status to {@code NT_STATUS_UNSUCCESSFUL}. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K 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)