Search in sources :

Example 1 with ForestFileNotFoundException

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

the class TestExceptions method testFileNotFoundException.

@Test
public void testFileNotFoundException() {
    ForestFileNotFoundException exception = new ForestFileNotFoundException("/xxx/yyy");
    assertThat(exception.getMessage()).isEqualTo("File '/xxx/yyy' does not exist");
    assertThat(exception.getFilePath()).isEqualTo("/xxx/yyy");
}
Also used : ForestFileNotFoundException(com.dtflys.forest.exceptions.ForestFileNotFoundException) Test(org.junit.Test)

Aggregations

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