blob: 61b6f48d550dd95fc12a682ecc5734547f690f0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package samples
import org.junit._
import Assert._
import org.apache.tuscany.sca._
@Test
class HelloworldTestCase {
@Test
def testSayHello() = {
var node = TuscanyRuntime.runComposite("helloworld.composite", "target/classes");
try {
var helloworld = node.getService(classOf[sample.Helloworld], "HelloworldComponent");
assertEquals("Hello Amelia", helloworld.sayHello("Amelia"));
} finally {
node.stop();
}
}
}
|