@Test public void testAllUsAsciiCharactersMustBeEncodable() throws CharConversionException { getArchiveDriver().assertEncodable(US_ASCII_CHARACTERS); }
@Test public void testCharsetMustNotBeNull() { assert null != getArchiveDriver().getCharset(); }
@Override public void setUp() throws IOException { super.setUp(); assert !UTF8.equals(getArchiveDriver().getCharset()) || null == getUnencodableName() : "Bad test setup!"; }
@Test(expected = CharConversionException.class) public void testUnencodableNameMustThrowCharConversionException() throws CharConversionException { final String name = getUnencodableName(); if (null == name) throw new CharConversionException("Ignore me!"); getArchiveDriver().assertEncodable(name); }