assertEquals("*", n.getLabelString(0));
}
public void test_ctor_abs() throws TextParseException
{
Name n = new Name(m_abs);
assertTrue(n.isAbsolute());
assertFalse(n.isWild());
assertEquals(4, n.labels());
assertEquals(17, n.length());
assertTrue(Arrays.equals(new byte[] { 3, 'W', 'W', 'W' },
n.getLabel(0)));
assertEquals("WWW", n.getLabelString(0));
assertTrue(Arrays.equals(new byte[] { 7, 'D', 'n', 's', 'J', 'a', 'v', 'a' },
n.getLabel(1)));
assertEquals("DnsJava", n.getLabelString(1));
assertTrue(Arrays.equals(new byte[] { 3, 'o', 'r', 'g' },
n.getLabel(2)));
assertEquals("org", n.getLabelString(2));
assertTrue(Arrays.equals(new byte[] { 0 },
n.getLabel(3)));
assertEquals("", n.getLabelString(3));
}