blob: 264c3c0ddc78c2d578dd091b4e73b3b08a585c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package org.apache.tuscany.sca.itest.cdi;
import junit.framework.TestCase;
import org.apache.tuscany.sca.host.embedded.SCADomain;
public class ConstructorPropertyInjectionTestCase extends TestCase {
public void testFoo1() throws Exception {
SCADomain sca = SCADomain.newInstance("ConstructorPropertyInjection.composite");
Bar foo = sca.getService(Bar.class, "Foo1Component");
assertEquals("fubar", foo.getBar());
}
public void testFoo2() throws Exception {
SCADomain sca = SCADomain.newInstance("ConstructorPropertyInjection.composite");
Bar foo = sca.getService(Bar.class, "Foo2Component");
assertEquals("fubar", foo.getBar());
}
public void testFoo3() throws Exception {
SCADomain sca = SCADomain.newInstance("ConstructorPropertyInjection.composite");
Bar foo = sca.getService(Bar.class, "Foo3Component");
assertEquals("fubar", foo.getBar());
}
}
|