git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
system
/
general
/
src
/
test
/
java
/
org
/
wamblee
/
system
/
adapters
/
DefaultContainerTest.java
diff --git
a/system/general/src/test/java/org/wamblee/system/adapters/DefaultContainerTest.java
b/system/general/src/test/java/org/wamblee/system/adapters/DefaultContainerTest.java
index 07143e3eeee14371cf7f5f31ff3e7aade2c288fc..938a12228763493b6596d13a832e6a7c1bc9e98c 100644
(file)
--- a/
system/general/src/test/java/org/wamblee/system/adapters/DefaultContainerTest.java
+++ b/
system/general/src/test/java/org/wamblee/system/adapters/DefaultContainerTest.java
@@
-23,9
+23,13
@@
public class DefaultContainerTest extends AdapterTestCase {
public void testConstructorInjection() {
ClassConfiguration x1Config = new ClassConfiguration(X1.class);
x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
public void testConstructorInjection() {
ClassConfiguration x1Config = new ClassConfiguration(X1.class);
x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
+ x1Config.getObjectConfig().getSetterConfig().initAllSetters();
+
+ ClassConfiguration x4Config = new ClassConfiguration(X4.class);
+ x4Config.getObjectConfig().getSetterConfig().initAllSetters();
DefaultContainer container = new DefaultContainer("top").addComponent(
DefaultContainer container = new DefaultContainer("top").addComponent(
- "x1", x1Config).addComponent("x4",
X4.class
);
+ "x1", x1Config).addComponent("x4",
x4Config
);
Scope scope = container.start();
AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)" },
Scope scope = container.start();
AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)" },
@@
-40,12
+44,19
@@
public class DefaultContainerTest extends AdapterTestCase {
public void testConstructorInjectionAndSetterInjection() {
ClassConfiguration x1Config = new ClassConfiguration(X1.class);
x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
public void testConstructorInjectionAndSetterInjection() {
ClassConfiguration x1Config = new ClassConfiguration(X1.class);
x1Config.getConstructorConfig().getParameters().setValue(0, "hello");
+ x1Config.getObjectConfig().getSetterConfig().initAllSetters();
X8 x8 = new X8(null);
EVENT_TRACKER.clear();
X8 x8 = new X8(null);
EVENT_TRACKER.clear();
+ ClassConfiguration x4Config = new ClassConfiguration(X4.class);
+ x4Config.getObjectConfig().getSetterConfig().initAllSetters();
+
+ ObjectConfiguration x8Config = new ObjectConfiguration(X8.class);
+ x8Config.getSetterConfig().initAllSetters();
+
DefaultContainer container = new DefaultContainer("top").addComponent(
DefaultContainer container = new DefaultContainer("top").addComponent(
- "x1", x1Config).addComponent("x4",
X4.class).addComponent("x8", x8
);
+ "x1", x1Config).addComponent("x4",
x4Config).addComponent("x8", x8, x8Config
);
Scope scope = container.start();
AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)",
Scope scope = container.start();
AssertionUtils.assertEquals(new String[] { "x1(hello)", "x4(x1)",