branch | development |
changeset 2674 | 8b3736c87626 |
child 3184 | 3611c3493dbc |
2673:26941db6892d | 2674:8b3736c87626 |
---|---|
1 package stx.libjava.tests.lib.java.net; |
|
2 |
|
3 import static org.junit.Assert.*; |
|
4 |
|
5 import java.net.InetAddress; |
|
6 import java.net.UnknownHostException; |
|
7 |
|
8 import org.junit.Test; |
|
9 |
|
10 public class InetAddressTests { |
|
11 |
|
12 @Test |
|
13 public void test() { |
|
14 try { |
|
15 InetAddress addr = InetAddress.getLocalHost(); |
|
16 addr.getAddress(); |
|
17 } catch (UnknownHostException e) { |
|
18 // TODO Auto-generated catch block |
|
19 assertTrue(false); |
|
20 } |
|
21 |
|
22 } |
|
23 |
|
24 } |