@@ -0,0 +1,2419 @@
+/*%0A * Copyright (c) 2010-2017. Axon Framework%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.axonframework.boot;%0A%0Aimport com.codahale.metrics.MetricRegistry;%0Aimport org.axonframework.metrics.GlobalMetricRegistry;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0A%0A@ContextConfiguration%0A@EnableAutoConfiguration(exclude = %7B%0A        JmxAutoConfiguration.class, WebClientAutoConfiguration.class, HibernateJpaAutoConfiguration.class,%0A        DataSourceAutoConfiguration.class%0A%7D)%0A@RunWith(SpringRunner.class)%0Apublic class AxonAutoConfigurationWithMetricsTest %7B%0A%0A    @Autowired%0A    private ApplicationContext applicationContext;%0A%0A    @Autowired%0A    private MetricRegistry metricRegistry;%0A    @Autowired%0A    private GlobalMetricRegistry globalMetricRegistry;%0A%0A    @Test%0A    public void testContextInitialization() %7B%0A        assertNotNull(applicationContext);%0A%0A        assertNotNull(applicationContext.getBean(MetricRegistry.class));%0A        assertEquals(MetricRegistry.class, metricRegistry.getClass());%0A%0A        assertNotNull(applicationContext.getBean(GlobalMetricRegistry.class));%0A        assertEquals(GlobalMetricRegistry.class, globalMetricRegistry.getClass());%0A    %7D%0A%7D%0A

Add test class for Metrics auto configuration