summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite2
-rw-r--r--java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml25
-rw-r--r--java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java2
3 files changed, 27 insertions, 2 deletions
diff --git a/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite b/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
index d7fa82635e..6e5fcf1286 100644
--- a/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
+++ b/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite
@@ -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"/>
diff --git a/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml b/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..8a2a1a23be
--- /dev/null
+++ b/java/sca/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml
@@ -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
diff --git a/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java b/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
index a1b42bf815..69c4d40bc7 100644
--- a/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
+++ b/java/sca/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java
@@ -52,7 +52,7 @@ public class AttributeURIMissingTestCase extends TestCase {
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());