summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-04-22 05:27:21 (EDT)
committerStefan Liebig2008-04-22 05:27:21 (EDT)
commit403bb9a38c4430282cff709b3a7e1e8823be64db (patch)
tree7fb931eb663ba288cd32b50b3a38ccaa7402a2e4
parent658fce596d5038be879029e72b650ce46a2a6706 (diff)
downloadorg.eclipse.riena-403bb9a38c4430282cff709b3a7e1e8823be64db.zip
org.eclipse.riena-403bb9a38c4430282cff709b3a7e1e8823be64db.tar.gz
org.eclipse.riena-403bb9a38c4430282cff709b3a7e1e8823be64db.tar.bz2
naming
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/core/service/ServiceInjectorTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/core/service/ServiceInjectorTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/core/service/ServiceInjectorTest.java
index 8c726f5..786a64f 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/core/service/ServiceInjectorTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/core/service/ServiceInjectorTest.java
@@ -36,10 +36,9 @@ public class ServiceInjectorTest extends RienaTestCase {
public void scribble() {
Object target = null;
- Inject.service("serviceId").into(target).andStart(getContext());
- Inject.service("serviceId").into(target).bind("bind").unbind("unbind").andStart(getContext());
- Inject.service("serviceId").useFilter("").into(target).bind("bind").unbind("unbind")
- .andStart(getContext());
+ Inject.service("serviceClazz").into(target).andStart(getContext());
+ Inject.service("serviceClazz").into(target).bind("bind").unbind("unbind").andStart(getContext());
+ Inject.service("serviceClazz").useFilter("").into(target).bind("bind").unbind("unbind").andStart(getContext());
}
public void testInjectDepOneObviousBindUnbindError() {
@@ -67,8 +66,7 @@ public class ServiceInjectorTest extends RienaTestCase {
ServiceRegistration reg = getContext().registerService(DepTwo.class.getName(), depTwo, null);
try {
- Inject.service(DepOne.class.getName()).into(target).bind("binde").unbind("entbinde").andStart(
- getContext());
+ Inject.service(DepOne.class.getName()).into(target).bind("binde").unbind("entbinde").andStart(getContext());
} catch (IllegalArgumentException e) {
assertTrue(true);
}
@@ -148,7 +146,8 @@ public class ServiceInjectorTest extends RienaTestCase {
dict.put(Constants.SERVICE_RANKING, Integer.valueOf(100));
ServiceRegistration reg2 = getContext().registerService(IRanking.class.getName(), rank2, dict);
- ServiceInjector shot = Inject.service(IRanking.class.getName()).useRanking().into(target).andStart(getContext());
+ ServiceInjector shot = Inject.service(IRanking.class.getName()).useRanking().into(target)
+ .andStart(getContext());
assertEquals(1, target.count("bind", IRanking.class));
assertEquals(100, target.getDepRanking());
@@ -167,7 +166,8 @@ public class ServiceInjectorTest extends RienaTestCase {
IRanking rank1 = new RankingOne(0);
ServiceRegistration reg1 = getContext().registerService(IRanking.class.getName(), rank1, null);
- ServiceInjector shot = Inject.service(IRanking.class.getName()).useRanking().into(target).andStart(getContext());
+ ServiceInjector shot = Inject.service(IRanking.class.getName()).useRanking().into(target)
+ .andStart(getContext());
assertEquals(1, target.count("bind", IRanking.class));
assertEquals(0, target.getDepRanking());