From 16fa25393f52616d74ed5fd36c6b085aec83b95f Mon Sep 17 00:00:00 2001 From: Stoyan Hristov Date: Mon, 21 Jan 2019 16:24:49 +0200 Subject: [PATCH] fix unit tests --- .../biz/nynja/account/services/AccountServiceTests.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/test/java/biz/nynja/account/services/AccountServiceTests.java b/src/test/java/biz/nynja/account/services/AccountServiceTests.java index 0f0386d..919803c 100644 --- a/src/test/java/biz/nynja/account/services/AccountServiceTests.java +++ b/src/test/java/biz/nynja/account/services/AccountServiceTests.java @@ -97,12 +97,7 @@ import biz.nynja.account.services.decomposition.IncorrectAccountCountException; import biz.nynja.account.services.decomposition.ProfileProvider; import biz.nynja.account.utils.GrpcServerTestBase; import biz.nynja.account.utils.Util; -import io.grpc.Context; -import io.grpc.Contexts; import io.grpc.Metadata; -import io.grpc.ServerCall; -import io.grpc.ServerCallHandler; -import io.grpc.ServerInterceptor; import io.grpc.stub.MetadataUtils; /** @@ -1510,8 +1505,8 @@ public class AccountServiceTests extends GrpcServerTestBase { final SearchResponse reply = searchServiceBlockingStub.searchByUsername(request); assertNotNull("Reply should not be null", reply); - assertTrue(String.format("Reply should contain cause '%s'", Cause.MULTIPLE_INVALID_PARAMETERS), - reply.getError().getCause().equals(Cause.MULTIPLE_INVALID_PARAMETERS)); + assertTrue(String.format("Reply should contain cause '%s'", Cause.MISSING_USERNAME), + reply.getError().getCause().equals(Cause.MISSING_USERNAME)); } @Test -- GitLab