Add configuration for the HMAC passphrase, to prevent service initialization errors inside unit tests that use the ClientDateEncoder service
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/160816c9 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/160816c9 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/160816c9 Branch: refs/heads/5.4-js-rewrite Commit: 160816c99bf4a9ab58bc3d697f5643421306caf1 Parents: 7abba05 Author: Howard M. Lewis Ship <[email protected]> Authored: Tue Nov 20 10:23:05 2012 -0800 Committer: Howard M. Lewis Ship <[email protected]> Committed: Tue Nov 20 10:23:05 2012 -0800 ---------------------------------------------------------------------- .../services/ForceDevelopmentModeModule.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/160816c9/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java index 683c296..f4d7498 100644 --- a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java +++ b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/ForceDevelopmentModeModule.java @@ -1,4 +1,4 @@ -// Copyright 2011 The Apache Software Foundation +// Copyright 2011, 2012 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,5 +29,6 @@ public class ForceDevelopmentModeModule { configuration.add(SymbolConstants.PRODUCTION_MODE, false); configuration.add(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM, "app.root.package"); + configuration.add(SymbolConstants.HMAC_PASSPHRASE, "hmac passphrase for testing"); } }
