From ae2b3188fd9dfa9ff2b0e3987109f90146808c54 Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 6 May 2010 07:14:22 +0000 Subject: Start bringing property itest up git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@941593 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/itest/cdi/Foo1.java | 5 ++--- .../src/main/resources/OuterPropertyTest.composite | 2 +- .../src/main/resources/PropertyTest.composite | 18 +++++++++--------- .../properties/src/main/resources/fileProperty.txt | 2 +- .../src/main/resources/manyValuesFileProperty.txt | 10 ++++++---- 5 files changed, 19 insertions(+), 18 deletions(-) (limited to 'sca-java-2.x/trunk/itest') diff --git a/sca-java-2.x/trunk/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java b/sca-java-2.x/trunk/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java index 7c700903d6..f44fed7389 100644 --- a/sca-java-2.x/trunk/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java +++ b/sca-java-2.x/trunk/itest/properties/src/main/java/org/apache/tuscany/sca/itest/cdi/Foo1.java @@ -25,11 +25,10 @@ import org.oasisopen.sca.annotation.Service; @Service(Bar.class) public class Foo1 implements Bar { - @Property protected String bar; - @Constructor( {"bar"}) - public Foo1(String b) { + @Constructor + public Foo1(@Property(name="bar") String b) { this.bar = b; } diff --git a/sca-java-2.x/trunk/itest/properties/src/main/resources/OuterPropertyTest.composite b/sca-java-2.x/trunk/itest/properties/src/main/resources/OuterPropertyTest.composite index ae9da4541a..0c8714cbe1 100644 --- a/sca-java-2.x/trunk/itest/properties/src/main/resources/OuterPropertyTest.composite +++ b/sca-java-2.x/trunk/itest/properties/src/main/resources/OuterPropertyTest.composite @@ -26,7 +26,7 @@ 125 - + Overriden A Overriden B Overriden C diff --git a/sca-java-2.x/trunk/itest/properties/src/main/resources/PropertyTest.composite b/sca-java-2.x/trunk/itest/properties/src/main/resources/PropertyTest.composite index 285aaae8ca..7c834d5e0b 100644 --- a/sca-java-2.x/trunk/itest/properties/src/main/resources/PropertyTest.composite +++ b/sca-java-2.x/trunk/itest/properties/src/main/resources/PropertyTest.composite @@ -31,7 +31,7 @@ 1 - + a b c @@ -89,10 +89,10 @@ - - - f - + + + f + Apache @@ -109,19 +109,19 @@ - - + + aValue - + 25 - + TestString_1 TestString_2 diff --git a/sca-java-2.x/trunk/itest/properties/src/main/resources/fileProperty.txt b/sca-java-2.x/trunk/itest/properties/src/main/resources/fileProperty.txt index 0d3d9ead83..7e932622ce 100644 --- a/sca-java-2.x/trunk/itest/properties/src/main/resources/fileProperty.txt +++ b/sca-java-2.x/trunk/itest/properties/src/main/resources/fileProperty.txt @@ -18,4 +18,4 @@ * under the License. --> -fileValue +fileValue \ No newline at end of file diff --git a/sca-java-2.x/trunk/itest/properties/src/main/resources/manyValuesFileProperty.txt b/sca-java-2.x/trunk/itest/properties/src/main/resources/manyValuesFileProperty.txt index 6d4180ee2f..e037537d7d 100644 --- a/sca-java-2.x/trunk/itest/properties/src/main/resources/manyValuesFileProperty.txt +++ b/sca-java-2.x/trunk/itest/properties/src/main/resources/manyValuesFileProperty.txt @@ -17,7 +17,9 @@ * specific language governing permissions and limitations * under the License. --> -fileValueOne -fileValueTwo -fileValueThree -fileValueFour + + fileValueOne + fileValueTwo + fileValueThree + fileValueFour + \ No newline at end of file -- cgit v1.2.3