- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getNodeStatus (0.45 sec)
-
src/test/java/jcifs/NameServiceClientTest.java
NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) }; when(nameServiceClient.getNodeStatus(nbtAddress)).thenReturn(expectedAddresses); // Act NetbiosAddress[] actualAddresses = nameServiceClient.getNodeStatus(nbtAddress); // Assert assertNotNull(actualAddresses); assertEquals(1, actualAddresses.length);
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/NbtAddressTest.java
when(mockNameServiceClient.getNodeStatus(nbtAddress)).thenReturn(nodeStatusResponse); nbtAddress.calledName = NbtAddress.SMBSERVER_NAME; // Manually set for this test case assertEquals("ACTUAL_SERVER_NAME", nbtAddress.nextCalledName(mockContext)); verify(mockNameServiceClient).getNodeStatus(nbtAddress); } @Test
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/netbios/NameServiceClientImplTest.java
// When/Then - This will throw UnknownHostException quickly assertThrows(UnknownHostException.class, () -> { nameServiceClient.getNodeStatus(mockNetbiosAddress); }, "Should throw UnknownHostException when node status cannot be retrieved"); } @Test @DisplayName("Should handle getByName with boolean flag")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/NameServiceClient.java
* * @param nbtAddress the NetBIOS address to query * @return the node status responses * @throws UnknownHostException if the node status cannot be retrieved */ NetbiosAddress[] getNodeStatus(NetbiosAddress nbtAddress) throws UnknownHostException; /** * Lookup addresses for the given <code>hostname</code>. * * @param hostname the hostname to resolve
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
log.debug("Failed to lookup name", ioe); } } throw new UnknownHostException(name.name); } @Override public NbtAddress[] getNodeStatus(final NetbiosAddress addr) throws UnknownHostException { final NodeStatusResponse response = new NodeStatusResponse(this.transportContext.getConfig(), addr.unwrap(NbtAddress.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
this.calledName = SMBSERVER_NAME; } else if (SMBSERVER_NAME.equals(this.calledName)) { NetbiosAddress[] addrs; try { addrs = tc.getNameServiceClient().getNodeStatus(this); if (this.getNameType() == 0x1D) { for (final NetbiosAddress addr : addrs) { if (addr.getNameType() == 0x20) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
} break; } } catch (final IOException ioe) {} } throw new UnknownHostException(name.name); } NbtAddress[] getNodeStatus(final NbtAddress addr) throws UnknownHostException { int n, srcHashCode; NodeStatusRequest request; NodeStatusResponse response = new NodeStatusResponse(addr);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
*/ public static NbtAddress[] getAllByAddress(final NbtAddress addr) throws UnknownHostException { try { final NbtAddress[] addrs = CLIENT.getNodeStatus(addr); cacheAddressArray(addrs); return addrs; } catch (final UnknownHostException uhe) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0)