TextAnalyzerTest.java revision 972
public class TextAnalyzerTest {
private String defaultEncoding = new InputStreamReader(new ByteArrayInputStream(new byte[0])).getEncoding();
@Test
public void defaultEncoding() throws IOException {
}
@Test
public void resetsStreamOnShortInput() throws IOException {
}
@Test
public void utf8WithBOM() throws IOException {
new ByteArrayInputStream(buffer));
}
@Test
public void utf16WithBOM() throws IOException {
new ByteArrayInputStream(bytes));
}
@Test
public void utf16WithBOMAlternate() throws IOException {
byte b = bytes[i];
bytes[i + 1] = b;
}
new ByteArrayInputStream(bytes));
}
public class TestableTextAnalyzer extends TextAnalyzer {
public TestableTextAnalyzer() {
super(null);
}
char[] buf = new char[1024];
}
}
}