You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by bh...@apache.org on 2019/10/10 15:19:56 UTC

[incubator-dlab] branch develop updated: DLAB-000 fixed unit test

This is an automated email from the ASF dual-hosted git repository.

bhliva pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7af2245  DLAB-000 fixed unit test
7af2245 is described below

commit 7af2245741d81baebb6d7904a76e2f79d2a3e2df
Author: bhliva <bo...@epam.com>
AuthorDate: Thu Oct 10 18:19:47 2019 +0300

    DLAB-000 fixed unit test
---
 .../java/com/epam/dlab/backendapi/resources/KeycloakResourceTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/test/java/com/epam/dlab/backendapi/resources/KeycloakResourceTest.java b/services/self-service/src/test/java/com/epam/dlab/backendapi/resources/KeycloakResourceTest.java
index cc215c6..37c4c5a 100644
--- a/services/self-service/src/test/java/com/epam/dlab/backendapi/resources/KeycloakResourceTest.java
+++ b/services/self-service/src/test/java/com/epam/dlab/backendapi/resources/KeycloakResourceTest.java
@@ -31,7 +31,7 @@ public class KeycloakResourceTest extends TestBase {
 
     @Test
     public void refreshAccessToken() {
-        when(keycloakService.refreshToken(anyString())).thenReturn(mock(AccessTokenResponse.class));
+        when(keycloakService.generateAccessToken(anyString())).thenReturn(mock(AccessTokenResponse.class));
 
         final Response response = resources.getJerseyTest()
                 .target("oauth/refresh/" + "refresh_token")
@@ -41,7 +41,7 @@ public class KeycloakResourceTest extends TestBase {
 
         assertEquals(HttpStatus.SC_OK, response.getStatus());
         assertEquals(MediaType.APPLICATION_JSON, response.getHeaderString(HttpHeaders.CONTENT_TYPE));
-        verify(keycloakService).refreshToken(anyString());
+        verify(keycloakService).generateAccessToken(anyString());
         verifyNoMoreInteractions(keycloakService);
     }
 }
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org