- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 105 for testConstructors (0.14 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
response = new SmbComQueryInformationResponse(serverTimeZoneOffset); } /** * Test of constructor, of class SmbComQueryInformationResponse. */ @Test public void testConstructor() { // The constructor sets the command and serverTimeZoneOffset. // We can't directly access serverTimeZoneOffset, but we can verify its effect.
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10); channelManager = new ChannelManager(mockContext, mockSession); } @Test void testConstructor() { assertNotNull(channelManager); assertFalse(channelManager.isUseMultiChannel()); assertEquals(0, channelManager.getChannels().size()); assertNotNull(channelManager.getLoadBalancer());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtExceptionTest.java
*/ @Test @DisplayName("NbtException constructor should correctly set error class, error code, and message") void testConstructor() { int errorClass = NbtException.ERR_NAM_SRVC; int errorCode = NbtException.FMT_ERR; NbtException exception = new NbtException(errorClass, errorCode);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
throw new RuntimeException("Failed to access field " + fieldName, e); } } /** * Test that the constructor initializes all fields correctly */ @Test public void testConstructor() { // Arrange int fid = 0x1234; int offset = 100; int remaining = 50; byte[] buffer = new byte[100]; int off = 10; int len = 40; // Act
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
} /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#SmbComClose(jcifs.Configuration, int, long)}. */ @Test public void testConstructor() { // Given int fid = 123; long lastWriteTime = System.currentTimeMillis(); // When SmbComClose smbComClose = new SmbComClose(config, fid, lastWriteTime);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
remoteInterface = new NetworkInterfaceInfo(remoteAddr, 1000); channelInfo = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface); } @Test void testConstructor() { assertEquals("test-channel", channelInfo.getChannelId()); assertEquals(mockTransport, channelInfo.getTransport()); assertEquals(localInterface, channelInfo.getLocalInterface());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
Properties props = new Properties(); config = new PropertyConfiguration(props); response = new Trans2FindFirst2Response(config); } @Test void testConstructor() { // Test that the constructor properly initializes the object assertNotNull(response); // The command should be SMB_COM_TRANSACTION2 (0x32 = 50)
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
clazz = clazz.getSuperclass(); } } throw new NoSuchFieldException(fieldName); } @Test @DisplayName("Constructor initializes fields") void testConstructor() throws Exception { Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("/file"); assertEquals("/file", getPrivateField(cmd, "path")); assertEquals((byte) 0x00, getPrivateField(cmd, "maxSetupCount"));
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
/** * Unit tests for the Trans2QueryPathInformation class. */ class Trans2QueryPathInformationTest { /** * Tests the constructor of Trans2QueryPathInformation. */ @Test void testConstructor() { // Given String filename = "testFile.txt"; int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO // WhenCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt()); smbRandomAccessFile = new SmbRandomAccessFile(smbFile, "rw"); } @Test void testConstructor() throws SmbException { assertNotNull(smbRandomAccessFile); assertEquals(0, smbRandomAccessFile.getFilePointer()); } @Test void testGetFilePointer() throws SmbException {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0)