- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 163 for act (0.01 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
@Test void constructorAcceptsNonNullObject() { // Arrange : create a dummy address InetAddress dummy = mock(InetAddress.class); // Act UniAddress ua = new UniAddress(dummy); // Assert assertSame(dummy, ua.getAddress(), "constructor should store the supplied address"); } @Test void constructorRejectsNull() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/HandlerTest.java
return new Handler(ctx); } @Test @DisplayName("getDefaultPort returns SMB default port") void testGetDefaultPort() { // Arrange Handler handler = newHandler(); // Act & Assert assertEquals(SmbConstants.DEFAULT_PORT, handler.getDefaultPort(), "Default port should match SmbConstants"); } @Test @DisplayName("openConnection returns SmbFile using provided CIFSContext")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
// Act int actual = findNtStatusOrMinusOne(dosCode); // Assert assertEquals(expectedNtStatus, actual, "Mapping must match table entry"); } @Test @DisplayName("Edge: zero DOS code maps to zero NTSTATUS") void zeroCodeMapsToZero() { // Act int actual = findNtStatusOrMinusOne(0x00000000);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
@Test @DisplayName("Constructor with CIFSContext: creates instance") void constructor_withContext_createsInstance() { // Arrange CIFSContext ctx = mock(CIFSContext.class); // Act SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Assert assertNotNull(trace, "Instance should be created"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
cmd/testdata/config/invalid.yaml
- 'https://server3-pool2:9000/mnt/disk{1...4}/' - 'https://server4-pool2:9000/mnt/disk{1...4}/' options: ftp: # settings for MinIO to act as an ftp server address: ':8021' passive-port-range: '30000-40000' sftp: # settings for MinIO to act as an sftp server address: ':8022'
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Dec 07 09:33:56 UTC 2023 - 866 bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
return Stream.of(Arguments.of(anon), Arguments.of(mock)); } @Test @DisplayName("Class is a public interface in expected package") void testPublicInterfaceAndPackage() { // Arrange & Act Class<SessionSetupHandler> clazz = SessionSetupHandler.class; // Assert assertTrue(clazz.isInterface(), "Should be an interface");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportTest.java
@Test void testClose() throws Exception { // Act smbTransport.close(); // Assert verify(smbTransport).close(); // Verify that the close method was called } @Test void testGetRemoteAddress() { // Arrange when(smbTransport.getRemoteAddress()).thenReturn(remoteAddress); // Act Address result = smbTransport.getRemoteAddress();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
void defaultConstructor_producesRequiredKrb5EntryWithEmptyOptions() { // Arrange StaticJAASConfiguration cfg = new StaticJAASConfiguration(); // Act AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored"); // Assert assertNotNull(entries, "Entries array should not be null");
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/smb1/smb1/HandlerTest.java
URL url = new URL(null, "smb://host/share", handler); // Act URLConnection conn = handler.openConnection(url); // Assert assertNotNull(conn); assertTrue(conn instanceof SmbFile); } @Test @DisplayName("openConnection throws NPE for null URL") void testOpenConnectionWithNullUrl() { // Act & Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
@Test void returnsProvidedValues_happyPath() { // Arrange SmbBasicFileInfo info = new TestInfo(0x20 /* ARCHIVE */, 1_600_000_000_000L, 1_700_000_000_000L, 1_650_000_000_000L, 42L); // Act & Assert Assertions.assertEquals(0x20, info.getAttributes(), "attributes should match"); Assertions.assertEquals(1_600_000_000_000L, info.getCreateTime(), "create time should match");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)