tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r674042 - in /tuscany/java/sca/itest/validation/src: main/resources/contribution/resource/AttributeURIMissing/ main/resources/contribution/resource/AttributeURIMissing/META-INF/ test/java/contribution/resource/
Date Fri, 04 Jul 2008 13:16:39 GMT
Author: slaws
Date: Fri Jul  4 06:16:38 2008
New Revision: 674042

URL: http://svn.apache.org/viewvc?rev=674042&view=rev
Log:
Fix the AttributeURIMissing validation test. included an sca-contribution.xml

Added:
    tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/
    tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
  (with props)
Modified:
    tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
    tuscany/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java

Modified: tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite?rev=674042&r1=674041&r2=674042&view=diff
==============================================================================
--- tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
(original)
+++ tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
Fri Jul  4 06:16:38 2008
@@ -22,7 +22,7 @@
 	targetNamespace="http://calc"
 	name="Calculator">
 
-    <export.resource xmlns:ns="http://ns"/>
+    <!-- export.resource xmlns:ns="http://ns"/-->
 
     <service name="CalculatorService" promote="CalculatorServiceComponent">
         <interface.java interface="calculator.warning.CalculatorService"/>

Added: tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml?rev=674042&view=auto
==============================================================================
--- tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
(added)
+++ tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
Fri Jul  4 06:16:38 2008
@@ -0,0 +1,25 @@
+<?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.    
+-->
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	      targetNamespace="http://calc"
+              xmlns:calc="http://calc">
+   <deployable composite="calc:Calculator"/>
+   <import.resource xmlns="http://www.osoa.org/xmlns/sca/1.0"/>
+</contribution>
\ No newline at end of file

Propchange: tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: tuscany/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java?rev=674042&r1=674041&r2=674042&view=diff
==============================================================================
--- tuscany/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
(original)
+++ tuscany/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
Fri Jul  4 06:16:38 2008
@@ -52,7 +52,7 @@
 
     public void testCalculator() {
     	Monitor monitor = customDomain.getMonitorInstance();
-    	Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem();
+    	Problem problem = ((DefaultLoggingMonitorImpl)monitor).getProblems().get(0);
         
     	assertNotNull(problem);
         assertEquals("AttributeURIMissing", problem.getMessageId());



Mime
View raw message