From f2ff12dc589d7e2485909a2d35e7104b93d09b30 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Wed, 10 Feb 2016 00:36:44 +0100 Subject: [PATCH] Make ApplicationContext more robust By including members with non-public visibility --- test/poodinis/containertest.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/poodinis/containertest.d b/test/poodinis/containertest.d index b3d0a48..b2a976a 100644 --- a/test/poodinis/containertest.d +++ b/test/poodinis/containertest.d @@ -25,7 +25,7 @@ version(unittest) { class AutowiredTestContext : ApplicationContext { @Autowire - public UnrelatedClass unrelatedClass; + private UnrelatedClass unrelatedClass; @Component public ClassWrapper wrapper() { @@ -36,10 +36,10 @@ version(unittest) { class ComplexAutowiredTestContext : ApplicationContext { @Autowire - public UnrelatedClass unrelatedClass; + private UnrelatedClass unrelatedClass; @Autowire - public ClassWrapper classWrapper; + protected ClassWrapper classWrapper; public override void registerDependencies(shared(DependencyContainer) container) { container.register!UnrelatedClass;