Search in sources :

Example 1 with UnsupportedEventException

use of io.spine.server.event.UnsupportedEventException in project core-java by SpineEventEngine.

the class UnsupportedEventExceptionShould method have_msg_and_error.

@Test
public void have_msg_and_error() {
    final StringValue msg = Wrapper.forString("");
    final UnsupportedEventException exception = new UnsupportedEventException(msg);
    assertNotNull(exception.getMessage());
    assertNotNull(exception.getError());
    assertEquals(msg, exception.getEventMessage());
}
Also used : StringValue(com.google.protobuf.StringValue) UnsupportedEventException(io.spine.server.event.UnsupportedEventException) Test(org.junit.Test)

Aggregations

StringValue (com.google.protobuf.StringValue)1 UnsupportedEventException (io.spine.server.event.UnsupportedEventException)1 Test (org.junit.Test)1