/**
 * 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.idea.annotator;

import org.apache.camel.idea.CamelLightCodeInsightFixtureTestCaseIT;

import static org.junit.Assert.*;

/**
 * Test Camel simple validation and the expected value is highlighted
 * TIP : Writing highlighting test can be tricky because if the highlight is one character off
 * it will fail, but the error messaged might still be correct. In this case it's likely the TextRange
 * is incorrect.
 */
public class CamelSimpleAnnotatorTest extends CamelLightCodeInsightFixtureTestCaseIT {

    public void testAnnotatorSimpleValidation() {
        myFixture.configureByText("AnnotatorTestData.java", getJavaWithSimple());
        myFixture.checkHighlighting(false, false, true, true);
    }

    private String getJavaWithSimple() {
        return "import org.apache.camel.builder.RouteBuilder;\n"
            + "public class MyRouteBuilder extends RouteBuilder {\n"
            + "        public void configure() throws Exception {\n"
            + "            from(\"netty-http:http://localhost/cdi?matchOnUriPrefix=true&nettySharedHttpServer=#httpServer\")\n"
            + "            .id(\"http-route-cdi\")\n"
            + "            .transform()\n"
            + "            .simple(\"Response from Camel CDI on route ${xrouteId} using thread: ${threadName}\""
            + "        }\n"
            + "    }";
    }
}
@@ -913,43 +913,8 @@
 T;%0A%0A
-import static org.junit.Assert.*;%0A%0A
 /**%0A

Fix a checkstyle issue