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");
}
Aggregations