You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2013/07/20 23:41:35 UTC
svn commit: r1505216 [2/2] - in /webservices/axiom/trunk:
modules/axiom-api/src/main/java/org/apache/axiom/attachments/
modules/axiom-api/src/main/java/org/apache/axiom/attachments/utils/
modules/axiom-api/src/main/java/org/apache/axiom/om/impl/builder...
Modified: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/fault/TestGetException.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/fault/TestGetException.java?rev=1505216&r1=1505215&r2=1505216&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/fault/TestGetException.java (original)
+++ webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/fault/TestGetException.java Sat Jul 20 21:41:34 2013
@@ -1,46 +1,46 @@
-/*
- * 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.
- */
-package org.apache.axiom.ts.soap.fault;
-
-import javax.xml.namespace.QName;
-
-import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.OMMetaFactory;
-import org.apache.axiom.soap.SOAPConstants;
-import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.ts.soap.SOAPSpec;
-import org.apache.axiom.ts.soap.SOAPTestCase;
-
-public class TestGetException extends SOAPTestCase {
- public TestGetException(OMMetaFactory metaFactory, SOAPSpec spec) {
- super(metaFactory, spec);
- }
-
- protected void runTest() throws Throwable {
- SOAPFault fault = soapFactory.createSOAPFault();
- SOAPFaultDetail detail = soapFactory.createSOAPFaultDetail(fault);
- OMElement detailEntry = soapFactory.createOMElement(new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
- detailEntry.setText("This is an exception message");
- detail.addDetailEntry(detailEntry);
- Exception exception = fault.getException();
- assertNotNull(exception);
- assertEquals("This is an exception message", exception.getMessage());
- }
-}
+/*
+ * 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.
+ */
+package org.apache.axiom.ts.soap.fault;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMMetaFactory;
+import org.apache.axiom.soap.SOAPConstants;
+import org.apache.axiom.soap.SOAPFault;
+import org.apache.axiom.soap.SOAPFaultDetail;
+import org.apache.axiom.ts.soap.SOAPSpec;
+import org.apache.axiom.ts.soap.SOAPTestCase;
+
+public class TestGetException extends SOAPTestCase {
+ public TestGetException(OMMetaFactory metaFactory, SOAPSpec spec) {
+ super(metaFactory, spec);
+ }
+
+ protected void runTest() throws Throwable {
+ SOAPFault fault = soapFactory.createSOAPFault();
+ SOAPFaultDetail detail = soapFactory.createSOAPFaultDetail(fault);
+ OMElement detailEntry = soapFactory.createOMElement(new QName(SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY));
+ detailEntry.setText("This is an exception message");
+ detail.addDetailEntry(detailEntry);
+ Exception exception = fault.getException();
+ assertNotNull(exception);
+ assertEquals("This is an exception message", exception.getMessage());
+ }
+}
Propchange: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/fault/TestGetException.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/faulttext/TestSetLang.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/faulttext/TestSetLang.java?rev=1505216&r1=1505215&r2=1505216&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/faulttext/TestSetLang.java (original)
+++ webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/faulttext/TestSetLang.java Sat Jul 20 21:41:34 2013
@@ -1,51 +1,51 @@
-/*
- * 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.
- */
-package org.apache.axiom.ts.soap.faulttext;
-
-import org.apache.axiom.om.OMAttribute;
-import org.apache.axiom.om.OMMetaFactory;
-import org.apache.axiom.soap.SOAP12Constants;
-import org.apache.axiom.soap.SOAPFaultText;
-import org.apache.axiom.ts.soap.SOAPSpec;
-import org.apache.axiom.ts.soap.SOAPTestCase;
-
-public class TestSetLang extends SOAPTestCase {
- public TestSetLang(OMMetaFactory metaFactory, SOAPSpec spec) {
- super(metaFactory, spec);
- }
-
- protected void runTest() throws Throwable {
- SOAPFaultText faultText = soapFactory.createSOAPFaultText();
- faultText.setLang("en");
- assertEquals(
- "SOAP Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
- "en", faultText.getLang());
- OMAttribute langAttribute = (OMAttribute) faultText.getAllAttributes()
- .next();
- assertEquals(
- "SOAP Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
- SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, langAttribute.getLocalName());
- assertEquals(
- "SOAP Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
- SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX, langAttribute.getNamespace().getPrefix());
- assertEquals(
- "SOAP Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
- SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI, langAttribute.getNamespace().getNamespaceURI());
- }
-}
+/*
+ * 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.
+ */
+package org.apache.axiom.ts.soap.faulttext;
+
+import org.apache.axiom.om.OMAttribute;
+import org.apache.axiom.om.OMMetaFactory;
+import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.SOAPFaultText;
+import org.apache.axiom.ts.soap.SOAPSpec;
+import org.apache.axiom.ts.soap.SOAPTestCase;
+
+public class TestSetLang extends SOAPTestCase {
+ public TestSetLang(OMMetaFactory metaFactory, SOAPSpec spec) {
+ super(metaFactory, spec);
+ }
+
+ protected void runTest() throws Throwable {
+ SOAPFaultText faultText = soapFactory.createSOAPFaultText();
+ faultText.setLang("en");
+ assertEquals(
+ "SOAP Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
+ "en", faultText.getLang());
+ OMAttribute langAttribute = (OMAttribute) faultText.getAllAttributes()
+ .next();
+ assertEquals(
+ "SOAP Fault Text Test : - After calling setLang method, Lang attribute local name mismaatch",
+ SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME, langAttribute.getLocalName());
+ assertEquals(
+ "SOAP Fault Text Test : - After calling setLang method, Lang attribute namespace prefix mismatch",
+ SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX, langAttribute.getNamespace().getPrefix());
+ assertEquals(
+ "SOAP Fault Text Test : - After calling setLang method, Lang attribute namespace uri mismatch",
+ SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI, langAttribute.getNamespace().getNamespaceURI());
+ }
+}
Propchange: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/faulttext/TestSetLang.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axiom/trunk/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/XSLTImplementation.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/XSLTImplementation.java?rev=1505216&r1=1505215&r2=1505216&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/XSLTImplementation.java (original)
+++ webservices/axiom/trunk/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/XSLTImplementation.java Sat Jul 20 21:41:34 2013
@@ -1,67 +1,67 @@
-/*
- * 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.
- */
-package org.apache.axiom.testutils.suite;
-
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.stream.StreamSource;
-
-/**
- * Specifies an XSLT implementation for use in a {@link MatrixTestCase}.
- */
-public interface XSLTImplementation extends Dimension {
- XSLTImplementation[] INSTANCES = new XSLTImplementation[] {
- new XSLTImplementation() {
- public void addTestParameters(MatrixTestCase testCase) {
- testCase.addTestParameter("xslt", "xalan");
- }
-
- public TransformerFactory newTransformerFactory() {
- return new org.apache.xalan.processor.TransformerFactoryImpl();
- }
-
- public boolean supportsLexicalHandlerWithStreamSource() {
- return true;
- }
- },
- new XSLTImplementation() {
- public void addTestParameters(MatrixTestCase testCase) {
- testCase.addTestParameter("xslt", "saxon");
- }
-
- public TransformerFactory newTransformerFactory() {
- return new net.sf.saxon.TransformerFactoryImpl();
- }
-
- public boolean supportsLexicalHandlerWithStreamSource() {
- return false;
- }
- },
- };
-
- TransformerFactory newTransformerFactory();
-
- /**
- * Determine if an identity transformation from a {@link StreamSource} to a {@link SAXResult}
- * will generate events defined by {@link LexicalHandler}.
- *
- * @return <code>true</code> if the XSLT implementation will invoke the methods on the
- * {@link LexicalHandler} set on the {@link SAXResult}, <code>false</code> otherwise
- */
- boolean supportsLexicalHandlerWithStreamSource();
-}
+/*
+ * 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.
+ */
+package org.apache.axiom.testutils.suite;
+
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.stream.StreamSource;
+
+/**
+ * Specifies an XSLT implementation for use in a {@link MatrixTestCase}.
+ */
+public interface XSLTImplementation extends Dimension {
+ XSLTImplementation[] INSTANCES = new XSLTImplementation[] {
+ new XSLTImplementation() {
+ public void addTestParameters(MatrixTestCase testCase) {
+ testCase.addTestParameter("xslt", "xalan");
+ }
+
+ public TransformerFactory newTransformerFactory() {
+ return new org.apache.xalan.processor.TransformerFactoryImpl();
+ }
+
+ public boolean supportsLexicalHandlerWithStreamSource() {
+ return true;
+ }
+ },
+ new XSLTImplementation() {
+ public void addTestParameters(MatrixTestCase testCase) {
+ testCase.addTestParameter("xslt", "saxon");
+ }
+
+ public TransformerFactory newTransformerFactory() {
+ return new net.sf.saxon.TransformerFactoryImpl();
+ }
+
+ public boolean supportsLexicalHandlerWithStreamSource() {
+ return false;
+ }
+ },
+ };
+
+ TransformerFactory newTransformerFactory();
+
+ /**
+ * Determine if an identity transformation from a {@link StreamSource} to a {@link SAXResult}
+ * will generate events defined by {@link LexicalHandler}.
+ *
+ * @return <code>true</code> if the XSLT implementation will invoke the methods on the
+ * {@link LexicalHandler} set on the {@link SAXResult}, <code>false</code> otherwise
+ */
+ boolean supportsLexicalHandlerWithStreamSource();
+}
Propchange: webservices/axiom/trunk/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/XSLTImplementation.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axiom/trunk/systests/osgi-tests/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native