Search in sources :

Example 6 with Response

use of io.spine.base.Response in project core-java by SpineEventEngine.

the class ResponsesShould method return_false_if_not_OK_response.

@Test
public void return_false_if_not_OK_response() {
    final Response error = Response.newBuilder().setError(Error.getDefaultInstance()).build();
    assertFalse(Responses.isOk(error));
}
Also used : Response(io.spine.base.Response) Test(org.junit.Test)

Aggregations

Response (io.spine.base.Response)6 Test (org.junit.Test)5 Subscription (io.spine.client.Subscription)3 Topic (io.spine.client.Topic)3 Command (io.spine.base.Command)2 Target (io.spine.client.Target)2 Message (com.google.protobuf.Message)1 StreamObserver (io.grpc.stub.StreamObserver)1 Failure (io.spine.base.Failure)1 Version (io.spine.base.Version)1 QueryResponse (io.spine.client.QueryResponse)1 SubscriptionUpdate (io.spine.client.SubscriptionUpdate)1 BoundedContext (io.spine.server.BoundedContext)1 CommandBus (io.spine.server.commandbus.CommandBus)1 AbstractVersionableEntity (io.spine.server.entity.AbstractVersionableEntity)1 VersionableEntity (io.spine.server.entity.VersionableEntity)1 CommandRouter (io.spine.server.procman.CommandRouter)1 StandTestProjectionRepository (io.spine.server.stand.Given.StandTestProjectionRepository)1 TenantAwareTest (io.spine.server.tenant.TenantAwareTest)1 ProjectId (io.spine.test.aggregate.ProjectId)1