Search in sources :

Example 1 with ForestNoFileNameException

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

the class TestExceptions method testNoFileNameException.

@Test
public void testNoFileNameException() {
    ForestNoFileNameException exception = new ForestNoFileNameException(byte[].class);
    assertThat(exception.getMessage()).isEqualTo("[Forest] '[B' parameters width @DataFile annotation must define a fileName");
    assertThat(exception.getParameterType()).isEqualTo(byte[].class);
}
Also used : ForestNoFileNameException(com.dtflys.forest.exceptions.ForestNoFileNameException) Test(org.junit.Test)

Aggregations

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