Search in sources :

Example 1 with TextTruncateWrapper

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

the class TextWrapperProviderTest method testTruncate.

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

Aggregations

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