Skip to content
Snippets Groups Projects
Commit cf9b77d8 authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Used class variables instead of hard-coded strings

parent 03bab0a9
No related branches found
No related tags found
1 merge request!61Improve code coverage
Pipeline #9770 failed
......@@ -43,6 +43,7 @@ public class WhoamiControllerTest {
return details;
}
}
public class DummyAuthority extends ArrayList {
@Override
public String toString() {
......@@ -64,6 +65,6 @@ public class WhoamiControllerTest {
@Test
public void testWhoamiResponse() {
String response = sut.whoami();
assertEquals("user: username<BR>roles: roles<BR>details: details<BR>", response);
assertEquals("user: " + userName + "<BR>roles: " + roles + "<BR>details: " + details + "<BR>", response);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment