From 5a315d4ba3fe1c046e139269ea82ad2330c25a06 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 28 Jul 2008 12:32:27 +0000 Subject: Update to use web-uri attribute git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@680334 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/implementation/web/xml/ReadTestCase.java | 2 +- .../org/apache/tuscany/sca/implementation/web/xml/WriteTestCase.java | 2 +- .../org/apache/tuscany/sca/implementation/web/xml/TestWeb.composite | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'java/sca/modules/implementation-web/src/test') 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"> - + -- cgit v1.2.3