Author: dims
Date: Sun Jan 13 11:41:32 2008
New Revision: 611627
URL: http://svn.apache.org/viewvc?rev=611627&view=rev
Log:
Fix build break under jdk14
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMOutputFormatTest.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMOutputFormatTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMOutputFormatTest.java?rev=611627&r1=611626&r2=611627&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMOutputFormatTest.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/OMOutputFormatTest.java
Sun Jan 13 11:41:32 2008
@@ -71,8 +71,8 @@
// This is rudimentary. We can add a more complete test that checks
// sub items in the future.
- assertTrue(contentType.contains(SOAP11Constants.SOAP_11_CONTENT_TYPE));
- assertTrue(contentType.contains(MTOMConstants.MTOM_TYPE));
+
assertTrue(contentType.indexOf(SOAP11Constants.SOAP_11_CONTENT_TYPE)!=-1);
+ assertTrue(contentType.indexOf(MTOMConstants.MTOM_TYPE)!=-1);
}
public void testGetContentTypeSOAP12MTOM() {
@@ -83,8 +83,8 @@
// This is rudimentary. We can add a more complete test that checks
// sub items in the future.
- assertTrue(contentType.contains(SOAP12Constants.SOAP_12_CONTENT_TYPE));
- assertTrue(contentType.contains(MTOMConstants.MTOM_TYPE));
+
assertTrue(contentType.indexOf(SOAP12Constants.SOAP_12_CONTENT_TYPE)!=-1);
+ assertTrue(contentType.indexOf(MTOMConstants.MTOM_TYPE)!=-1);
}
public void testGetContentTypeSOAP12MTOMWithAction() {
@@ -96,8 +96,8 @@
// This is rudimentary. We can add a more complete test that checks
// sub items in the future.
- assertTrue(contentType.contains(SOAP12Constants.SOAP_12_CONTENT_TYPE));
- assertTrue(contentType.contains(MTOMConstants.MTOM_TYPE));
- assertTrue(contentType.contains("action=\\\"testSoapAction\\\""));
+
assertTrue(contentType.indexOf(SOAP12Constants.SOAP_12_CONTENT_TYPE)!=-1);
+ assertTrue(contentType.indexOf(MTOMConstants.MTOM_TYPE)!=-1);
+ assertTrue(contentType.indexOf("action=\\\"testSoapAction\\\"")!=-1);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]