@@ -0,0 +1,2255 @@
+/*%0A * Copyright 2015 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.stream.binder;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.cloud.stream.annotation.EnableBinding;%0Aimport org.springframework.cloud.stream.config.BindingProperties;%0Aimport org.springframework.cloud.stream.config.BindingServiceProperties;%0Aimport org.springframework.cloud.stream.messaging.Source;%0Aimport org.springframework.cloud.stream.utils.MockBinderRegistryConfiguration;%0Aimport org.springframework.context.annotation.Import;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0A/**%0A * @author Marius Bogoevici%0A * @author Ilayaperumal Gopinathan%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringBootTest(classes = SourceBindingWithGlobalPropertiesOnlyTest.TestSource.class, properties = %7B%0A%09%09%22spring.cloud.stream.default.contentType=application/json%22%7D)%0Apublic class SourceBindingWithGlobalPropertiesOnlyTest %7B%0A%0A%09@Autowired%0A%09private BindingServiceProperties bindingServiceProperties;%0A%0A%09@SuppressWarnings(%22unchecked%22)%0A%09@Test%0A%09public void testGlobalPropertiesSet() %7B%0A%09%09BindingProperties bindingProperties = bindingServiceProperties.getBindingProperties(Source.OUTPUT);%0A%09%09Assertions.assertThat(bindingProperties.getContentType()).isEqualTo(%22application/json%22);%0A%09%7D%0A%0A%09@EnableBinding(Source.class)%0A%09@EnableAutoConfiguration%0A%09@Import(MockBinderRegistryConfiguration.class)%0A%09public static class TestSource %7B%0A%0A%09%7D%0A%7D%0A

Add test for GH-782 fix