From 95bd96114e639620b34b132a0a11079fa9139e25 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 14 Jun 2011 07:15:35 +0000 Subject: 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 --- .../test/java/org/apache/tuscany/sca/impl/DirectoryDomainTestCase.java | 2 +- .../src/test/resources/test-domains/MyDomain/domain.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sca-java-2.x/trunk/modules/domain-node/src/test/resources/test-domains/MyDomain/domain.properties (limited to 'sca-java-2.x/trunk/modules/domain-node') 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 -- cgit v1.2.3