Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rainer-prosi committed Jul 27, 2023
1 parent 4762649 commit e639396
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLSession;

import org.cip4.jdflib.util.PlatformUtil;
import org.cip4.jdfutility.JDFUtilityTestBase;
import org.eclipse.jetty.http.BadMessageException;
import org.eclipse.jetty.server.Request;
Expand Down Expand Up @@ -81,8 +82,11 @@ public void testCustomize() throws UnknownHostException
rq.customize(e, request);
Mockito.when(request.getServerName()).thenReturn(InetAddress.getLocalHost().getHostName().toLowerCase());
rq.customize(e, request);
Mockito.when(request.getServerName()).thenReturn(InetAddress.getLocalHost().getHostName().toUpperCase());
rq.customize(e, request);
if (PlatformUtil.isWindows())
{
Mockito.when(request.getServerName()).thenReturn(InetAddress.getLocalHost().getHostName().toUpperCase());
rq.customize(e, request);
}
Mockito.when(request.getServerName()).thenReturn(InetAddress.getLocalHost().getHostAddress());
rq.customize(e, request);
Mockito.when(request.getServerName()).thenReturn(InetAddress.getLocalHost().getCanonicalHostName());
Expand Down

0 comments on commit e639396

Please sign in to comment.