File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
spring-integration-jms/src/test/java/org/springframework/integration/jms Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .integration .jms ;
1818
19- import jakarta .jms .JMSException ;
2019import jakarta .jms .Queue ;
2120
2221/**
2322 * @author Mark Fisher
23+ * @author Artem Bilan
2424 */
2525public class StubQueue implements Queue {
2626
27- public String getQueueName () throws JMSException {
28- return null ;
27+ private final String name ;
28+
29+ public StubQueue () {
30+ this .name = null ;
31+ }
32+
33+ public StubQueue (String name ) {
34+ this .name = name ;
35+ }
36+
37+ public String getQueueName () {
38+ return this .name ;
2939 }
3040
3141}
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ public MessageProducer createProducer(Destination destination) throws JMSExcepti
125125 }
126126
127127 @ Override
128- public Queue createQueue (String queueName ) throws JMSException {
129- return null ;
128+ public Queue createQueue (String queueName ) {
129+ return new StubQueue ( queueName ) ;
130130 }
131131
132132 @ Override
You can’t perform that action at this time.
0 commit comments