RandomUnicodeStringFactoryImpl implements RandomStringFactory { @Override public String getOneCharString(Font font) { return getString(font, ONE); } RandomUnicodeStringFactoryImpl(int[] printableCodePointArray); @Override String getString(Font font, int length); @Override String getOneCharString(Font font); @Override String getString(int length); @Override String getOneCharString(); static final int MAX_LENGTH; static final int ONE; }
@Test public void testGetOneCharStringNoArgs() throws Exception { assertNotNull(rsf.getOneCharString()); }
@Test(expected = UnsupportedOperationException.class) public void testGetOneCharStringFontArgument() throws Exception { rsf.getOneCharString(null); }