@@ -0,0 +1,2336 @@
+/*%0A * Copyright 2013-2014 the original author or authors.%0A *%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.springframework.cloud.netflix.ribbon;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;%0Aimport org.springframework.boot.test.IntegrationTest;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration;%0Aimport org.springframework.cloud.netflix.ribbon.RibbonAutoConfigurationIntegrationTests.TestConfiguration;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.context.annotation.Import;%0Aimport org.springframework.test.annotation.DirtiesContext;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport com.netflix.client.config.CommonClientConfigKey;%0Aimport com.netflix.client.config.IClientConfig;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author Dave Syer%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = TestConfiguration.class)%0A@DirtiesContext%0A@IntegrationTest(%22ribbon.ConnectTimeout=25000%22)%0Apublic class RibbonAutoConfigurationIntegrationTests %7B%0A%0A%09@Autowired%0A%09private SpringClientFactory factory;%0A%0A%09@Test%0A%09public void serverListIsConfigured() throws Exception %7B%0A%09%09IClientConfig config = this.factory.getClientConfig(%22client%22);%0A%09%09assertEquals(25000,%0A%09%09%09%09config.getPropertyAsInteger(CommonClientConfigKey.ConnectTimeout, 3000));%0A%09%7D%0A%0A%09@Configuration%0A%09@RibbonClient(%22client%22)%0A%09@Import(%7B PropertyPlaceholderAutoConfiguration.class, ArchaiusAutoConfiguration.class,%0A%09%09%09RibbonAutoConfiguration.class %7D)%0A%09protected static class TestConfiguration %7B%0A%09%7D%0A%0A%7D%0A

Test for default ribbon client configuration