Repository: camel
Updated Branches:
  refs/heads/master 642a91eae -> cdfee48f7


CAMEL-8174 Remove the test which is not used anymore


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cdfee48f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cdfee48f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cdfee48f

Branch: refs/heads/master
Commit: cdfee48f7545ba21c46d8ce2c6714dad147da6c4
Parents: 642a91e
Author: Willem Jiang <willem.ji...@gmail.com>
Authored: Tue Mar 3 19:32:27 2015 +0800
Committer: Willem Jiang <willem.ji...@gmail.com>
Committed: Tue Mar 3 19:32:27 2015 +0800

----------------------------------------------------------------------
 .../test/blueprint/MyInflightRepository.java    | 39 ----------------
 .../blueprint/MyInflightRepositoryTest.java     | 49 --------------------
 .../test/blueprint/MyInflightRepositoryTest.xml | 41 ----------------
 3 files changed, 129 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cdfee48f/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepository.java
----------------------------------------------------------------------
diff --git 
a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepository.java
 
b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepository.java
deleted file mode 100644
index eedb7b9..0000000
--- 
a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepository.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * 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.camel.test.blueprint;
-
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.impl.TimeoutInflightRepository;
-
-
-public class MyInflightRepository extends TimeoutInflightRepository {
-    
-    Map<String, Exchange> exchanges = new ConcurrentHashMap<String, 
Exchange>();
-    
-    protected void processTimeoutExchange(Exchange exchange, long 
processingTime) {
-        super.processTimeoutExchange(exchange, processingTime);
-        exchanges.put(exchange.getExchangeId(), exchange);
-    }
-    
-    public long getTimeoutExchange() {
-        return exchanges.size();
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/cdfee48f/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepositoryTest.java
----------------------------------------------------------------------
diff --git 
a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepositoryTest.java
 
b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepositoryTest.java
deleted file mode 100644
index a642dc7..0000000
--- 
a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/MyInflightRepositoryTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * 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.camel.test.blueprint;
-
-import org.apache.camel.spi.InflightRepository;
-import org.junit.Test;
-
-public class MyInflightRepositoryTest extends CamelBlueprintTestSupport {
-
-    @Override
-    protected String getBlueprintDescriptor() {
-        return "org/apache/camel/test/blueprint/MyInflightRepositoryTest.xml";
-    }
-
-    @Test
-    public void testMyInflightRepository() throws Exception {
-        InflightRepository inflightRepository = 
context().getInflightRepository();
-        // send out the message into the camel route
-        assertTrue("Get a wrong instance of inflightRepsitory", 
inflightRepository instanceof MyInflightRepository);
-        assertEquals("There is no inflight exchange", 0, 
inflightRepository.size());
-        getMockEndpoint("mock:before").expectedBodiesReceived("Hello Camel");
-        getMockEndpoint("mock:after").expectedBodiesReceived("Bye Camel");
-        
-        MyInflightRepository myInflightExchangeRepository = 
(MyInflightRepository)inflightRepository;
-        template.sendBody("direct:start", "Hello Camel");
-        
-        assertMockEndpointsSatisfied();
-
-        assertEquals("We should have no inflight exchange there ", 0, 
myInflightExchangeRepository.size());
-        assertEquals("Get a wrong size of timeout exchange", 1, 
myInflightExchangeRepository.getTimeoutExchange());
-        
-        
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/cdfee48f/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/MyInflightRepositoryTest.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/MyInflightRepositoryTest.xml
 
b/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/MyInflightRepositoryTest.xml
deleted file mode 100644
index dcccd0e..0000000
--- 
a/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/MyInflightRepositoryTest.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?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.
--->
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
-           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-           
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
-           xsi:schemaLocation="
-             http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0 
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd
-             http://www.osgi.org/xmlns/blueprint/v1.0.0 
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>
-
-  <bean id="async" class="org.apache.camel.processor.async.MyAsyncComponent" />
-  
-  <bean id="myInflightRepository" 
class="org.apache.camel.test.blueprint.MyInflightRepository">
-     <property name="waitTime" value="100" />
-     <property name="timeout" value="100" />
-  </bean>
-
-  <camelContext id="myCamelContext" 
xmlns="http://camel.apache.org/schema/blueprint";>
-      <route>
-         <from uri="direct:start"/>
-         <to uri="mock:before"/>
-         <to uri="async:bye:camel?delay=500"/>
-         <to uri="mock:after"/>
-      </route>
-  </camelContext>
-
-</blueprint>

Reply via email to