Search in sources :

Example 1 with ExampleProjectError

use of org.kie.workbench.common.screens.examples.model.ExampleProjectError in project kie-wb-common by kiegroup.

the class ImportProjectErrorPresenterTest method testTranslateError.

@Test
public void testTranslateError() {
    ExampleProjectError error = new ExampleProjectError(VALIDATOR_ID, DESCRIPTION, VALUES);
    String translatedMessager = this.presenter.translateError(error);
    assertEquals("- " + TRANSLATED_MESSAGE, translatedMessager);
}
Also used : ExampleProjectError(org.kie.workbench.common.screens.examples.model.ExampleProjectError) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ExampleProjectError (org.kie.workbench.common.screens.examples.model.ExampleProjectError)1