- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 64 for anySet (0.04 seconds)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
assertEquals("Invalid token", ex.getMessage()); // Ensure mechContext was not engaged due to early failure verify(this.mechContext, never()).initSecContext(any(), anyInt(), anyInt()); } @Test @DisplayName("initSecContext with null buffer and non-zero len throws NPE") void testInitSecContextNullBufferNonZeroLen() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
// Given when(mockResource.openInputStream()).thenReturn(mockInputStream); when(mockResource.openInputStream(anyInt())).thenReturn(mockInputStream); when(mockResource.openInputStream(anyInt(), anyInt(), anyInt())).thenReturn(mockInputStream); // When InputStream is1 = mockResource.openInputStream();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
@DisplayName("Should decode buffer correctly") void testDecode() throws SMBProtocolDecodingException { byte[] buffer = new byte[100]; when(mockFileSystemInfo.decode(any(byte[].class), anyInt(), anyInt())).thenReturn(24); int result = mockFileSystemInfo.decode(buffer, 0, 100); assertEquals(24, result); verify(mockFileSystemInfo, times(1)).decode(buffer, 0, 100); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.lenient; import static org.mockito.Mockito.spy;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
// Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); } @Test void testGetSyntax() { String syntax = srvsvc.getSyntax();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// Simulate different encode return values when(mockChunk1.encode(any(byte[].class), anyInt())).thenReturn(20); when(mockChunk2.encode(any(byte[].class), anyInt())).thenReturn(24); when(mockChunk3.encode(any(byte[].class), anyInt())).thenReturn(22); SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, mockChunk1, mockChunk2, mockChunk3);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.lang.reflect.Field;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.Properties; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
assertTrue(result); assertFalse(echoResponse.isVerifyFailed()); verify(mockDigest, never()).verify(any(), anyInt(), anyInt(), anyInt(), any()); } } @Nested @DisplayName("Credit Management Tests") class CreditManagementTests { @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0)