- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for TESTHOST (0.04 sec)
-
src/test/java/jcifs/NameServiceClientTest.java
} @Test void testGetNbtAllByAddress_StringIntString() throws UnknownHostException { // Arrange String host = "testHost"; int type = 0x20; String scope = "testScope"; NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
writer.write("192.168.1.100 TESTHOST\n"); writer.write("10.0.0.1 SERVER01\n"); } when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath()); // Test first host NbtAddress result = lmhosts.getByName("TESTHOST", mockContext); assertNotNull(result); assertEquals("TESTHOST", result.getHostName()); // Test second host
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
*/ @Test public void testConcurrentTreeOperationsThreadSafe() throws Exception { // Given SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); int threadCount = 10; int opsPerThread = 100; ExecutorService executor = Executors.newFixedThreadPool(threadCount);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
// Test the constructor with minimal parameters mockName = new Name(mockConfig, "TESTHOST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); assertNotNull(nbtAddress); assertEquals("TESTHOST", nbtAddress.getHostName()); assertArrayEquals(new byte[] { (byte) 192, (byte) 168, (byte) 1, (byte) 1 }, nbtAddress.getAddress());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
private SmbTransport transport; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Setup transport fields that are accessed directly transport.tconHostName = "testHost"; // Setup session.transport field (accessed directly in SmbTree) session.transport = transport; // Setup session to return transport via method call
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
void testStringConfigurationDelegation() { // Given when(mockDelegate.getOemEncoding()).thenReturn("UTF-8"); when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP"); when(mockDelegate.getDefaultUsername()).thenReturn("testuser"); when(mockDelegate.getDefaultPassword()).thenReturn("testpass");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
props.setProperty("jcifs.smb.client.password", "testpass"); props.setProperty("jcifs.smb.client.domain", "testdomain"); props.setProperty("jcifs.netbios.hostname", "testhost"); props.setProperty("jcifs.netbios.scope", ""); props.setProperty("jcifs.smb.client.connTimeout", "35000"); props.setProperty("jcifs.smb.client.soTimeout", "35000");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
when(mockConfig.getResolveOrder()).thenReturn(Arrays.asList(ResolverType.RESOLVER_DNS)); // Only DNS, no broadcast when(mockConfig.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockConfig.getNetbiosScope()).thenReturn(null); when(mockConfig.getNetbiosCachePolicy()).thenReturn(30); // Short cache when(mockConfig.getWinsServers()).thenReturn(new InetAddress[0]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
when(config.getSessionTimeout()).thenReturn(30_000); when(config.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("testhost"); transport = new SmbTransportImpl(context, address, 445, null, 0, false); } /** * Test that pre-auth integrity hash is properly synchronized */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
SmbTransportImpl mockTransport = Mockito.mock(SmbTransportImpl.class); Mockito.when(mockTransport.acquire()).thenReturn(mockTransport); SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); int threadCount = 10; int operationsPerThread = 200; ExecutorService executor = Executors.newFixedThreadPool(threadCount);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0)