Search in sources :

Example 1 with DeserializeCookieException

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

the class DeserializeCookieExceptionTest method test.

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

Aggregations

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