- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for BEHAVIORS (0.04 sec)
-
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
public CredentialsInternal renew() { // Returns null to represent an implementation that could not renew return null; } } // Provide different implementation behaviors to a parameterized test static Stream<Arguments> implementations() { return Stream.of(Arguments.of("returns self", (Supplier<SmbRenewableCredentials>) SelfRenewingCreds::new, true, false),
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
mockConfig = mock(Configuration.class); mockCredentials = mock(Credentials.class); mockTransportPool = mock(SmbTransportPool.class); // Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getCredentials()).thenReturn(mockCredentials); when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for SMBProtocolDowngradeException covering all constructors and behaviors. */ @ExtendWith(MockitoExtension.class) class SMBProtocolDowngradeExceptionTest { /** * Provides messages including edge cases (null and empty) for parameterized testing. */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/smb/SmbFilenameFilterTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for SmbFilenameFilter interface behaviors via simple implementations. * Each test creates a concrete filter to validate expected contract semantics * including normal operation, null handling, edge cases, and exception flow. */ @ExtendWith(MockitoExtension.class)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationRequestTest.java
assertTrue(consistentRequest.isSigningEnforced(), "Implementation should consistently return the same value"); } } @Test @DisplayName("Test different implementations can have different behaviors") void testDifferentImplementations() { // Given SmbNegotiationRequest enforcedRequest = new TestSmbNegotiationRequest(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportTest.java
import org.junit.jupiter.api.Test; import jcifs.RuntimeCIFSException; /** * Optimized test for Transport class focusing on core functionality * with fast execution and comprehensive coverage of key behaviors. */ class TransportTest { private TestableTransport transport; /** * Minimal Transport implementation for testing core functionality */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K 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: Sun Sep 07 00:10:21 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
class MockBehaviorTests { @Test @DisplayName("Should verify all interface methods can be mocked") void testAllMethodsCanBeMocked() { // Setup all mock behaviors when(mockReferralData.getExpiration()).thenReturn(1000L); when(mockReferralData.getPathConsumed()).thenReturn(10); when(mockReferralData.getDomain()).thenReturn("domain");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0)