package com.tngtech.jenkins.notification;

import org.apache.camel.CamelContext;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Test;

public class RouteTest {
    /**
     * This is the actual junit test method that does the assertion that our routes is working as expected
     */
    @Test
    public void testFiltering() throws Exception {
        // create and start Camel
        CamelContext context = new CamelApplication(null).createCamelContext();
        context.start();

        // Get the mock endpoint
        MockEndpoint mock = context.getEndpoint("mock:result", MockEndpoint.class);

        // There should be at least two good blog entries from the feed
        mock.expectedMinimumMessageCount(2);

        // Asserts that the above expectations is true, will throw assertions exception if it failed
        // Camel will default wait max 20 seconds for the assertions to be true, if the conditions
        // is true sooner Camel will continue
        mock.assertIsSatisfied();

        // stop Camel after use
        context.stop();
    }
}

@@ -127,16 +127,41 @@
 dpoint;%0A
+import org.junit.Ignore;%0A
 import o
@@ -209,136 +209,68 @@
     
-/**%0A     * This is the actual junit test method that does the assertion that our
+@Test%0A    @Ignore(%22Currently no tests for the
  route
-s
  i
-s working as expected%0A     */%0A    @Test
+tself%22)
 %0A   

Disable Camel Route Test