From e7dc1a8ddac9c28bcf57ea9d23b400ec65aa47f8 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 8 Jul 2008 04:43:55 +0000 Subject: TUSCANY-2390 - Enabling the disable test and adding new one git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674715 13f79535-47bb-0310-9956-ffa450edef68 --- .../vtest/assembly/ctypefile/impl/BServiceImpl.componentType | 2 +- .../assembly/ctypefile/src/main/resources/typefile.composite | 6 +++++- .../vtest/assembly/ctypefile/CompomnentTypeFileTestCase.java | 10 +++++++--- 3 files changed, 13 insertions(+), 5 deletions(-) (limited to 'java/sca/vtest/assembly') 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 @@ - SomePropertyValue + componentTypeValue \ 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 @@ - + compositeValue + + 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()); } } -- cgit v1.2.3