public void testLocator() throws Exception { OWSException xssExceptionLocator = new OWSException(httpCode, exceptionCode, textToEncode, "exceptionText"); assertTrue(isXmlEncoded(xssExceptionLocator)); }
public void testText() throws Exception { OWSException xssExceptionText = new OWSException(httpCode, exceptionCode, "locator", textToEncode); assertTrue(isXmlEncoded(xssExceptionText)); }