From 72c6afe0ffed59db834aa7f7357759186471c2c7 Mon Sep 17 00:00:00 2001 From: Gene Gleyzer Date: Thu, 21 Nov 2024 17:46:35 -0500 Subject: [PATCH] Simplify Hello test --- manualTests/src/main/x/webTests/Hello.x | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/manualTests/src/main/x/webTests/Hello.x b/manualTests/src/main/x/webTests/Hello.x index 25c09eb39..fd71da8c4 100644 --- a/manualTests/src/main/x/webTests/Hello.x +++ b/manualTests/src/main/x/webTests/Hello.x @@ -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;