Component implements ComponentProvider { public static String printURI(byte [] bs) { return printURI(bs, 0, bs.length, URIEscape.MIXED); } protected  Component(byte[] comp);  Component(String text); @Override byte[] getComponent(); static byte[] parseNative(String name); static byte[] parseURI(String name); static String hexPrint(byte [] bs); static String printNative(byte[] bs); static String printURI(byte [] bs); static String printURI(byte [] bs, int offset, int length); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final ComponentProvider NONCE; static final ComponentProvider EMPTY; }
@Test public void testPrintURIByteArrayIntInt_null() { String actual = Component.printURI(null, 0, 0); Assert.assertEquals("...", actual); }
@Test public void testPrintURIByteArrayIntInt_reflective() { String actual = Component.printURI(null, 0, 0); Assert.assertEquals("...", actual); }
@Test public void testPrintURIByteArrayIntInt_empty() { String expected = ""; byte[] bytes = expected.getBytes(); String actual = Component.printURI(bytes, 0, bytes.length); Assert.assertEquals("...", actual); }