Search in sources :

Example 1 with ForestUnsupportException

use of com.dtflys.forest.exceptions.ForestUnsupportException in project forest by dromara.

the class TestExceptions method testUnsupportedException.

@Test
public void testUnsupportedException() {
    ForestUnsupportException exception = new ForestUnsupportException("Xxx");
    assertThat(exception.getMessage()).isEqualTo("[Forest] 'Xxx' is unsupported");
    assertThat(exception.getUnsupported()).isEqualTo("Xxx");
}
Also used : ForestUnsupportException(com.dtflys.forest.exceptions.ForestUnsupportException) Test(org.junit.Test)

Aggregations

ForestUnsupportException (com.dtflys.forest.exceptions.ForestUnsupportException)1 Test (org.junit.Test)1