File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
spring-cloud-stream-integration-tests/src/test/java/org/springframework/cloud/stream/binding
spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2727import org .springframework .boot .builder .SpringApplicationBuilder ;
2828import org .springframework .cloud .stream .binder .test .OutputDestination ;
2929import org .springframework .cloud .stream .binder .test .TestChannelBinderConfiguration ;
30+ import org .springframework .cloud .stream .config .BindingServiceProperties ;
3031import org .springframework .context .ConfigurableApplicationContext ;
3132import org .springframework .context .annotation .Bean ;
3233import org .springframework .context .annotation .Configuration ;
@@ -49,6 +50,9 @@ void explicitBindings() {
4950 assertThat (context .getBean ("barin" , MessageChannel .class )).isNotNull ();
5051 assertThat (context .getBean ("fooout" , MessageChannel .class )).isNotNull ();
5152 assertThat (context .getBean ("barout" , MessageChannel .class )).isNotNull ();
53+
54+ BindingServiceProperties bindingServiceProperties = context .getBean (BindingServiceProperties .class );
55+ assertThat (bindingServiceProperties .getBindings ().get ("barOut" )).isNotNull ();
5256 }
5357 }
5458
Original file line number Diff line number Diff line change 2020import java .util .HashMap ;
2121import java .util .List ;
2222import java .util .Map ;
23+ import java .util .TreeMap ;
2324import java .util .concurrent .ConcurrentHashMap ;
2425
2526import com .fasterxml .jackson .annotation .JsonInclude ;
4445import org .springframework .core .convert .support .GenericConversionService ;
4546import org .springframework .integration .support .utils .IntegrationUtils ;
4647import org .springframework .util .Assert ;
48+ import org .springframework .util .LinkedCaseInsensitiveMap ;
4749
4850/**
4951 * @author Dave Syer
@@ -106,7 +108,7 @@ public class BindingServiceProperties
106108 * For example; This sets the content-type for the 'input' binding of a Sink
107109 * application: 'spring.cloud.stream.bindings.input.contentType=text/plain'
108110 */
109- private Map <String , BindingProperties > bindings = new ConcurrentHashMap <>();
111+ private Map <String , BindingProperties > bindings = new TreeMap <>(String . CASE_INSENSITIVE_ORDER );
110112
111113 /**
112114 * Additional per-binder properties (see {@link BinderProperties}) if more then one
You can’t perform that action at this time.
0 commit comments