blob: d2be20bcc0b760dc89d4c606f00c5b54d0d032fb (
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 testing;
import junit.framework.TestCase;
import org.osoa.sca.CurrentCompositeContext;
/**
* @version $Rev$ $Date$
*/
public class FooITest extends TestCase {
private HelloService service;
public void testFoo() {
System.out.println("Hello World");
}
public void testHelloWorld() {
assertEquals("Hello World", service.getGreeting());
}
protected void setUp() throws Exception {
super.setUp();
// service = new HelloServiceImpl();
service = CurrentCompositeContext.getContext().locateService(HelloService.class, "HelloComponent");
}
}
|