You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ma...@apache.org on 2010/09/03 19:23:54 UTC

svn commit: r992385 - in /incubator/aries/trunk/application/application-itests/src/test: java/org/apache/aries/isolated/sample/HelloWorldImpl.java resources/isolated/sample-blueprint.xml resources/isolated/sample2-blueprint.xml

Author: mahrwald
Date: Fri Sep  3 17:23:54 2010
New Revision: 992385

URL: http://svn.apache.org/viewvc?rev=992385&view=rev
Log:
ARIES-398: Missing resources for new iTests

Added:
    incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample2-blueprint.xml
Modified:
    incubator/aries/trunk/application/application-itests/src/test/java/org/apache/aries/isolated/sample/HelloWorldImpl.java
    incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample-blueprint.xml

Modified: incubator/aries/trunk/application/application-itests/src/test/java/org/apache/aries/isolated/sample/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-itests/src/test/java/org/apache/aries/isolated/sample/HelloWorldImpl.java?rev=992385&r1=992384&r2=992385&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-itests/src/test/java/org/apache/aries/isolated/sample/HelloWorldImpl.java (original)
+++ incubator/aries/trunk/application/application-itests/src/test/java/org/apache/aries/isolated/sample/HelloWorldImpl.java Fri Sep  3 17:23:54 2010
@@ -21,9 +21,14 @@ package org.apache.aries.isolated.sample
 import org.apache.aries.isolated.sample.HelloWorld;
 
 public class HelloWorldImpl implements HelloWorld {
-
+  private String msg = "hello world";
+  
+  public void setMessage(String msg) {
+    this.msg = msg;
+  }
+  
   public String getMessage() {
-    return "hello world";
+    return msg;
   }
 
 }

Modified: incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample-blueprint.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample-blueprint.xml?rev=992385&r1=992384&r2=992385&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample-blueprint.xml (original)
+++ incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample-blueprint.xml Fri Sep  3 17:23:54 2010
@@ -19,7 +19,9 @@
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0">
   
-  <bean id="hello" class="org.apache.aries.isolated.sample.HelloWorldImpl"/>
+  <bean id="hello" class="org.apache.aries.isolated.sample.HelloWorldImpl">
+  	<property name="message" value="hello world" />
+  </bean>
   <service interface="org.apache.aries.isolated.sample.HelloWorld" ref="hello" />
   
 </blueprint>

Added: incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample2-blueprint.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample2-blueprint.xml?rev=992385&view=auto
==============================================================================
--- incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample2-blueprint.xml (added)
+++ incubator/aries/trunk/application/application-itests/src/test/resources/isolated/sample2-blueprint.xml Fri Sep  3 17:23:54 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0">
+  
+  <bean id="hello" class="org.apache.aries.isolated.sample.HelloWorldImpl">
+  	<property name="message" value="hello brave new world" />
+  </bean>
+  <service interface="org.apache.aries.isolated.sample.HelloWorld" ref="hello" />
+  
+</blueprint>