- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for toInetAddress (0.06 seconds)
-
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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.4K bytes - Click Count (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()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (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". *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.1K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11K bytes - Click Count (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 {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 38.5K bytes - Click Count (0)