Search in sources :

Example 1 with DeserializeParameterException

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

the class DeserializeParameterExceptionTest method test.

@Test
public void test() {
    // given
    Exception e = new Exception("just test");
    // when
    DeserializeParameterException sut = new DeserializeParameterException("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 : DeserializeParameterException(com.tvd12.ezyhttp.core.exception.DeserializeParameterException) DeserializeParameterException(com.tvd12.ezyhttp.core.exception.DeserializeParameterException) Test(org.testng.annotations.Test)

Aggregations

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