Skip to content

Commit

Permalink
Simplify Hello test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Gleyzer committed Nov 21, 2024
1 parent 75044d1 commit 72c6afe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions manualTests/src/main/x/webTests/Hello.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,14 @@ module Hello
);
}

private @Lazy CookieBroker cookieBroker.calc() {
assert Shareable sessionManager := registry_.getResource("sessionManager"),
sessionManager.is(SessionManager);
return new CookieBroker(sessionManager);
}
private @Lazy CookieBroker cookieBroker.calc() = new CookieBroker(this);

// ----- WebApp duck-type methods --------------------------------------------------------------

Authenticator createAuthenticator() =
new DigestAuthenticator(new FixedRealm("Hello", "admin", "addaya"));
// TODO: test ChainAuthenticator
// new BasicAuthenticator(new FixedRealm("Hello", "admin", "addaya"));

sessions.Broker createSessionBroker() = cookieBroker;

Expand Down

0 comments on commit 72c6afe

Please sign in to comment.