You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2019/09/27 10:42:51 UTC
[isis] branch v2 updated: ISIS-2086: allow new IsisConfiguration to
be lookup by legacy tests
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/v2 by this push:
new bb57947 ISIS-2086: allow new IsisConfiguration to be lookup by legacy tests
bb57947 is described below
commit bb579479bb9bc5c7e6f07e8a390ea9c3646138af
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Sep 27 12:42:42 2019 +0200
ISIS-2086: allow new IsisConfiguration to be lookup by legacy tests
- needs further fixing once we migrate more config values
---
.../java/org/apache/isis/metamodel/MetaModelContext_forTesting.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/metamodel/src/main/java/org/apache/isis/metamodel/MetaModelContext_forTesting.java b/core/metamodel/src/main/java/org/apache/isis/metamodel/MetaModelContext_forTesting.java
index ed5ac62..3851d03 100644
--- a/core/metamodel/src/main/java/org/apache/isis/metamodel/MetaModelContext_forTesting.java
+++ b/core/metamodel/src/main/java/org/apache/isis/metamodel/MetaModelContext_forTesting.java
@@ -66,7 +66,8 @@ final class MetaModelContext_forTesting implements MetaModelContext {
MetamodelEventService.builder()
.build();
- private IsisConfiguration configuration;
+ @Builder.Default
+ private IsisConfiguration configuration = new IsisConfiguration(); // just config defaults
private SpecificationLoader specificationLoader;
@@ -126,6 +127,7 @@ final class MetaModelContext_forTesting implements MetaModelContext {
val fields = _Lists.of(
getConfigurationLegacy(),
+ getConfiguration(),
objectAdapterProvider,
serviceInjector,
serviceRegistry,