mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Make ApplicationContext more robust
By including members with non-public visibility
This commit is contained in:
parent
13921a128e
commit
f2ff12dc58
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue