diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-28 12:32:27 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-28 12:32:27 +0000 |
commit | 5a315d4ba3fe1c046e139269ea82ad2330c25a06 (patch) | |
tree | 6d72b9670d31d2149b9f51c1ec91473d8dc00108 /java/sca/modules/implementation-web/src/test | |
parent | f17aaa54bb07ff13a92b464fdea23699c9f9f9cc (diff) |
Update to use web-uri attribute
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@680334 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-web/src/test')
3 files changed, 3 insertions, 3 deletions
diff --git a/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java b/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java index b47aa0fbe1..10a7df7ae5 100644 --- a/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java +++ b/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java @@ -75,7 +75,7 @@ public class ReadTestCase extends TestCase { compositeBuilder.build(composite);
- assertTrue(((WebImplementation) composite.getComponents().get(0).getImplementation()).getURI().equals("MyWebapp"));
+ assertTrue(((WebImplementation) composite.getComponents().get(0).getImplementation()).getWebURI().equals("MyWebapp"));
}
}
diff --git a/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java b/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java index 7e609f5868..723672270d 100644 --- a/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java +++ b/java/sca/modules/implementation-web/src/test/java/org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java @@ -59,7 +59,7 @@ public class WriteTestCase extends TestCase { ByteArrayOutputStream bos = new ByteArrayOutputStream();
staxProcessor.write(composite, outputFactory.createXMLStreamWriter(bos));
- assertTrue(bos.toString().contains("MyWebapp"));
+ assertTrue(bos.toString().contains("web-uri=\"MyWebapp\""));
}
diff --git a/java/sca/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite b/java/sca/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite index 8d8db875af..181de3772b 100644 --- a/java/sca/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite +++ b/java/sca/modules/implementation-web/src/test/resources/org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite @@ -23,7 +23,7 @@ name="TestWeb">
<component name="TestWeb">
- <implementation.web uri="MyWebapp"/>
+ <implementation.web web-uri="MyWebapp"/>
</component>
</composite>
|