use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testNoWrap.
@Test
public void testNoWrap() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.NO_WRAP, text);
assertTrue(wrapper instanceof TextNoWrap);
}
use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class WiresTextDecoratorTest method testSetTextWrapperStrategy.
private void testSetTextWrapperStrategy(final TextWrapperStrategy wrapperStrategy) {
final Text text = decorator.getView();
final ITextWrapper expectedWrapper = TextWrapperProvider.get(wrapperStrategy, text);
decorator.setTextWrapper(wrapperStrategy);
verify(decorator).setTextBoundaries(any(BoundingBox.class));
assertEquals(expectedWrapper.getClass(), text.getWrapper().getClass());
}
use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testBounds.
@Test
public void testBounds() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.BOUNDS, text);
assertTrue(wrapper instanceof TextBoundsWrap);
}
Aggregations