diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-14 07:15:35 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-14 07:15:35 +0000 |
commit | 95bd96114e639620b34b132a0a11079fa9139e25 (patch) | |
tree | 3627cef2678e5c2d1c5aedc36644dfdc46a426c6 /sca-java-2.x/trunk/modules/domain-node/src/test | |
parent | 0e043d02b6eb760a505f9a1dd89f32643bfe96e8 (diff) |
Add a test with a domain.properties file
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src/test')
2 files changed, 2 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/DirectoryDomainTestCase.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/DirectoryDomainTestCase.java index 0a6d148957..fb863402c6 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/DirectoryDomainTestCase.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/DirectoryDomainTestCase.java @@ -53,7 +53,7 @@ public class DirectoryDomainTestCase { public void testMyDomain() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException, XMLStreamException, IOException {
Node node = TuscanyRuntime.newInstance().createNode(new File("src/test/resources/test-domains/MyDomain"));
- Assert.assertEquals("MyDomain", node.getDomainName());
+ Assert.assertEquals("foo", node.getDomainName());
Assert.assertEquals(1, node.getInstalledContributionURIs().size());
Assert.assertEquals("helloworld-contribution", node.getInstalledContributionURIs().get(0));
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/resources/test-domains/MyDomain/domain.properties b/sca-java-2.x/trunk/modules/domain-node/src/test/resources/test-domains/MyDomain/domain.properties new file mode 100644 index 0000000000..391414448e --- /dev/null +++ b/sca-java-2.x/trunk/modules/domain-node/src/test/resources/test-domains/MyDomain/domain.properties @@ -0,0 +1 @@ +domainName=foo
|