Skip to content

Commit

Permalink
Fix basic auth test
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 11, 2016
1 parent 7800772 commit b5b1a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se

private boolean isAuthorized(String auth) {
if (auth != null) {
final int index = auth.indexOf(' ');
final int index = auth.indexOf(' ') + 1;

if (index > 0) {
final String credentials = new String(decoder.decode(auth.substring(index)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,7 @@ public void shouldAllowUserToSuccessfullyOverrideTheHomePage() {
}

private ExpectedCondition<Boolean> urlToBe(final String expectedUrl) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
return expectedUrl.equals(driver.getCurrentUrl());
}
};
return driver1 -> expectedUrl.equals(driver1.getCurrentUrl());
}

@Test
Expand Down

0 comments on commit b5b1a3f

Please sign in to comment.