Search in sources :

Example 1 with TextLineBreakTruncateWrapper

use of com.ait.lienzo.client.core.shape.TextLineBreakTruncateWrapper in project kie-wb-common by kiegroup.

the class TextWrapperProviderTest method testTruncateWithLineBreak.

@Test
public void testTruncateWithLineBreak() {
    final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.TRUNCATE_WITH_LINE_BREAK, text);
    assertTrue(wrapper instanceof TextLineBreakTruncateWrapper);
}
Also used : ITextWrapper(com.ait.lienzo.client.core.shape.ITextWrapper) TextLineBreakTruncateWrapper(com.ait.lienzo.client.core.shape.TextLineBreakTruncateWrapper) Test(org.junit.Test)

Aggregations

ITextWrapper (com.ait.lienzo.client.core.shape.ITextWrapper)1 TextLineBreakTruncateWrapper (com.ait.lienzo.client.core.shape.TextLineBreakTruncateWrapper)1 Test (org.junit.Test)1