APISonar


fish.payara.ejb.http.protocol.SerializationType.JAVA

> fish > payara > ejb > http > protocol > SerializationType > JAVA
fish APIs payara APIs ejb APIs http APIs protocol APIs SerializationType APIs JAVA APIs

Example 1
public void remoteBeanMethodCall_ErrorArgumentNotSerializable() throws NamingException {
        RemoteBean bean = (RemoteBean) context.lookup("java:global/myapp/RemoteBean");
        try {
            boolean result = bean.failJavaArgumentType(new CustomNonSerializableType());
            assertEquals(SerializationType.JSON, serializationType);
            assertTrue(result);
        } catch (UndeclaredThrowableException ex) {
            assertEquals(SerializationType.JAVA, serializationType);
            assertSame(NotSerializableException.class, ex.getUndeclaredThrowable().getClass());
            assertEquals("fish.payara.ejb.http.client.RemoteEJBContextTest$CustomNonSerializableType", ex.getUndeclaredThrowable().getMessage());
        }
    }