TextStyle implements FontFaceContainerStyle { @Override public void addToElements(final OdsElements odsElements) { throw new UnsupportedOperationException(); } TextStyle(final String name, final boolean hidden, final TextProperties textProperties); static TextStyleBuilder builder(final String styleName); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override FontFace getFontFace(); @Override ObjectStyleFamily getFamily(); @Override String getName(); boolean isNotEmpty(); @Override String getKey(); @Override boolean isHidden(); @Override void addToElements(final OdsElements odsElements); static final TextStyle DEFAULT_TEXT_STYLE; }
@Test(expected = UnsupportedOperationException.class) public void testAddToElements() { final TextStyle style = TextStyle.builder("ts").build(); style.addToElements(null); }