use of org.ovirt.engine.api.model.IpVersion in project ovirt-engine by oVirt.
the class IpHelperTest method testReturnsV6WhenGivenValidV6Address.
/**
* Checks that when the version isn't given explicitly, and the address is a valid IPv6 address, the returned
* version is IPv6.
*/
@Test
public void testReturnsV6WhenGivenValidV6Address() {
Ip ip = new Ip();
ip.setAddress("::1");
IpVersion version = IpHelper.getVersion(ip);
assertEquals(IpVersion.V6, version);
}
Aggregations