Skip to content

Commit

Permalink
MGR-91 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Jan 14, 2020
1 parent c8946be commit 9c58eb0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -39,11 +39,11 @@ public void test() throws BusinessException {
Mockito.when(subject.isAuthenticated()).thenReturn(true);
PermissionProcessor permissionProcessor = Mockito.mock(PermissionProcessor.class);
Mockito.when(request.getPermissionProcessor()).thenReturn(permissionProcessor);
Mockito.when(request.getParameter("lines")).thenReturn("1");
Mockito.when(request.getParameter("lines")).thenReturn("2");
Mockito.when(permissionProcessor.hasPermission(PERM_LOG_VIEWER)).thenReturn(true);
byte[] processRequest = processRequest(null, null, environment, request);
String result = new String(processRequest);
Assert.assertEquals("log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%t] %-30c: %m%n", result);
Assert.assertEquals("log4j.appender.appng.File = ${webapp.root}/appNG.log", result);
}

@Override
Expand Down

0 comments on commit 9c58eb0

Please sign in to comment.