Search in sources :

Example 1 with DeserializeHeaderException

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

the class DeserializeHeaderExceptionTest method test.

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

Aggregations

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