diff options
Diffstat (limited to 'java/sca')
3 files changed, 13 insertions, 5 deletions
diff --git a/java/sca/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.componentType b/java/sca/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.componentType index 360c31b8e2..c6a0f274c4 100644 --- a/java/sca/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.componentType +++ b/java/sca/vtest/assembly/ctypefile/src/main/resources/org/apache/tuscany/sca/vtest/assembly/ctypefile/impl/BServiceImpl.componentType @@ -22,7 +22,7 @@ <interface.java interface="org.apache.tuscany.sca.vtest.assembly.ctypefile.BService"/> </service> - <property name="someProperty" type="xsd:string">SomePropertyValue</property> + <property name="someProperty" type="xsd:string">componentTypeValue</property> </componentType>
\ No newline at end of file diff --git a/java/sca/vtest/assembly/ctypefile/src/main/resources/typefile.composite b/java/sca/vtest/assembly/ctypefile/src/main/resources/typefile.composite index 3a70a1a977..889bb846ba 100644 --- a/java/sca/vtest/assembly/ctypefile/src/main/resources/typefile.composite +++ b/java/sca/vtest/assembly/ctypefile/src/main/resources/typefile.composite @@ -30,7 +30,11 @@ <component name="BComponent"> <implementation.java class="org.apache.tuscany.sca.vtest.assembly.ctypefile.impl.BServiceImpl"/> - <property name="someProperty"></property> + <property name="someProperty">compositeValue</property> </component> + + <!-- component name="BComponent2"> + <implementation.java class="org.apache.tuscany.sca.vtest.assembly.ctypefile.impl.BServiceImpl"/> + </component--> </composite> diff --git a/java/sca/vtest/assembly/ctypefile/src/test/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java b/java/sca/vtest/assembly/ctypefile/src/test/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java index ff0f9ebee7..f8f7e45f61 100644 --- a/java/sca/vtest/assembly/ctypefile/src/test/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java +++ b/java/sca/vtest/assembly/ctypefile/src/test/java/org/apache/tuscany/sca/vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java @@ -24,7 +24,6 @@ import junit.framework.Assert; import org.apache.tuscany.sca.vtest.utilities.ServiceFinder; import org.junit.AfterClass; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; /** @@ -34,6 +33,7 @@ public class CompomnentTypeFileTestCase { protected static String compositeName = "typefile.composite"; protected static AService aService = null; + protected static BService bService2 = null; @BeforeClass public static void init() throws Exception { @@ -41,6 +41,7 @@ public class CompomnentTypeFileTestCase { System.out.println("Setting up"); ServiceFinder.init(compositeName); aService = ServiceFinder.getService(AService.class, "AComponent/AService"); + bService2 = ServiceFinder.getService(BService.class, "BComponent2/BService"); } catch (Exception ex) { ex.printStackTrace(); } @@ -99,9 +100,12 @@ public class CompomnentTypeFileTestCase { * elements and Property elements. */ @Test - @Ignore("TUSCANY-2390") public void typeFile3() throws Exception { - Assert.assertEquals("SomePropertyValue", aService.getBProperty()); + Assert.assertEquals("compositeValue", aService.getBProperty()); + } + + public void typeFile31() throws Exception { + Assert.assertEquals("componentTypeValue", bService2.getSomeProperty()); } } |