Search in sources :

Example 1 with DeserializePathVariableException

use of com.tvd12.ezyhttp.core.exception.DeserializePathVariableException in project ezyhttp by youngmonkeys.

the class DeserializePathVariableExceptionTest method test.

@Test
public void test() {
    // given
    Exception e = new Exception("just test");
    // when
    DeserializePathVariableException sut = new DeserializePathVariableException("hello", "world", Map.class, e);
    // then
    Asserts.assertEquals("hello", sut.getValueName());
    Asserts.assertEquals("world", sut.getValue());
    Asserts.assertEquals(Map.class, sut.getOutType());
    Asserts.assertEquals(e, sut.getCause());
}
Also used : DeserializePathVariableException(com.tvd12.ezyhttp.core.exception.DeserializePathVariableException) DeserializePathVariableException(com.tvd12.ezyhttp.core.exception.DeserializePathVariableException) Test(org.testng.annotations.Test)

Aggregations

DeserializePathVariableException (com.tvd12.ezyhttp.core.exception.DeserializePathVariableException)1 Test (org.testng.annotations.Test)1