- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for toInetAddress (0.04 sec)
-
src/test/java/jcifs/netbios/UniAddressTest.java
verify(mockAddress, times(1)).toInetAddress(); } @Test void shouldReturnNullWhenWrappedIsNeitherInetAddressNorAddress() throws Exception { // UniAddress only accepts InetAddress, NbtAddress (which implements Address), or Address // Testing with NbtAddress which doesn't return anything from toInetAddress
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
} @Test @DisplayName("toInetAddress should return valid InetAddress") void testToInetAddressContract() throws UnknownHostException { // Given InetAddress expectedInetAddress = InetAddress.getByName("127.0.0.1"); when(mockAddress.toInetAddress()).thenReturn(expectedInetAddress); // When InetAddress inetAddress = mockAddress.toInetAddress(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/UniAddress.java
* * @throws UnknownHostException if the host cannot be resolved * * @see jcifs.Address#toInetAddress() */ @Override public InetAddress toInetAddress() throws UnknownHostException { if (this.addr instanceof Address) { return ((Address) this.addr).toInetAddress(); } if (this.addr instanceof InetAddress) { return (InetAddress) this.addr;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/Address.java
/** * Converts this address to an InetAddress. * * @return this address as an InetAddress * @throws UnknownHostException if the host cannot be resolved */ InetAddress toInetAddress() throws UnknownHostException; /** * Guess called name to try for session establishment. These * methods are used by the smb package. * * @return guessed name */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
// Test toInetAddress (delegates to getInetAddress) mockName = new Name(mockConfig, "TESTHOST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); InetAddress expectedInetAddress = InetAddress.getByName("192.168.1.1"); assertEquals(expectedInetAddress, nbtAddress.toInetAddress()); } @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
void testGetNodeStatus() throws UnknownHostException { // Given InetAddress realInetAddress = InetAddress.getByName("127.0.0.1"); when(mockNetbiosAddress.toInetAddress()).thenReturn(realInetAddress); when(mockNetbiosAddress.unwrap(NbtAddress.class)).thenReturn(null); // When/Then - This will throw UnknownHostException quickly
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/netbios/NbtAddress.java
*/ public InetAddress getInetAddress() throws UnknownHostException { return InetAddress.getByName(getHostAddress()); } @Override public InetAddress toInetAddress() throws UnknownHostException { return getInetAddress(); } /** * Returns this IP adress as a {@link java.lang.String} in the form "%d.%d.%d.%d". *
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/smb/SmbSessionImpl.java
*/ private InetAddress discoverWitnessService() throws IOException { // Try the same server first InetAddress serverAddress = transport.getRemoteAddress().toInetAddress(); if (isWitnessServiceAvailable(serverAddress)) { return serverAddress; } // Query for cluster witness service via DNS try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
final NodeStatusRequest request = new NodeStatusRequest(this.transportContext.getConfig(), new Name(this.transportContext.getConfig(), NbtAddress.ANY_HOSTS_NAME, 0x00, null)); request.addr = addr.toInetAddress(); int n = this.transportContext.getConfig().getNetbiosRetryCount(); while (n-- > 0) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0)