- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 103 for behaviors (0.05 sec)
-
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
@BeforeEach void setUp() { // Create a fresh pool instance for each test pool = new SmbTransportPoolImpl(); // Setup default mock behaviors when(ctx.getConfig()).thenReturn(config); when(ctx.getNameServiceClient()).thenReturn(nameSvc); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getTransportPool()).thenReturn(pool);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
assertThrows(NullPointerException.class, () -> SmbEnumerationUtil.doEnum(null, "*", 0, null, null)); } } @Nested @DisplayName("Wrapper behaviors") class WrapperBehaviorTests { @Test void resourceFilterWrapper_accept_falseForNonSmbFile_andNoDelegation() throws Exception { // Arrange
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
assertEquals(type, sid.getType()); assertEquals(text, sid.getTypeText()); } @Test @DisplayName("getDomainName and getAccountName behaviors for unknown, domain, and user") void testNamesByType() { byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 }; // Unknown: domainName derived from numeric SID, accountName = RID
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
assertNotNull(combined); } } @Nested @DisplayName("Mock Behavior Verification Tests") class MockBehaviorTests { @Test @DisplayName("Should verify all interface methods can be mocked") void testAllMethodsCanBeMocked() { // Setup all mock behaviors when(mockReferralData.getExpiration()).thenReturn(1000L);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
mockNotifications.add(fileNotifyInfo3); } /** * Test watch() method returning notifications */ @Test void testWatch() throws CIFSException { // Setup mock behavior when(watchHandle.watch()).thenReturn(mockNotifications); // Execute List<FileNotifyInformation> result = watchHandle.watch(); // Verify assertNotNull(result);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
// Close the stream outputStream.close(); // When & Then - after close, tmp is null so write(int) will throw NullPointerException // This is the actual behavior of the implementation assertThrows(NullPointerException.class, () -> outputStream.write(65)); } @Test void testWriteNullArray() throws CIFSException { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
void testGetSubjectLoginFailuresCacheAndRefresh(SubjectVariant variant) throws Exception { JAASAuthenticator auth = buildAuthenticator(variant); // First call attempts a JAAS login; behavior depends on JAAS configuration Subject first = auth.getSubject(); // Second call should return cached value (same as first) Subject second = auth.getSubject();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
import jcifs.config.PropertyConfiguration; import jcifs.context.BaseContext; import jcifs.smb.NtlmPasswordAuthentication; /** * Tests for the NtlmHttpURLConnection class. * This class uses Mockito to simulate the behavior of HttpURLConnection and other dependencies. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class NtlmHttpURLConnectionTest { @MockRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
void testFileInformationMockImplementation() { // Create mock FileInformation mockFileInfo = mock(FileInformation.class); // Define behavior when(mockFileInfo.getFileInformationLevel()).thenReturn(FileInformation.FILE_BASIC_INFO); // Test interface method byte level = mockFileInfo.getFileInformationLevel();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
} @Test @DisplayName("Test inherited behavior from parent class") void testInheritedBehavior() { // Test that response inherits from SmbComTransactionResponse assertTrue(response.hasMoreElements()); assertNotNull(response.nextElement()); // Test reset behavior response.reset(); assertTrue(response.hasMoreElements()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)