@@ -104,17 +104,6 @@ public void testBoundExchanges() throws IOException {
104104 expect (new String [] {"queue2" }, true );
105105 }
106106
107- private void headerPublish (String ex , String to , List <String > cc , List <String > bcc ) throws IOException {
108- if (cc != null ) {
109- headers .put ("CC" , ccList );
110- }
111- if (bcc != null ) {
112- headers .put ("BCC" , bccList );
113- }
114- props .setHeaders (headers );
115- channel .basicPublish (ex , to , props , new byte [0 ]);
116- }
117-
118107 public void testNonArray () throws IOException {
119108 headers .put ("CC" , 0 );
120109 props .setHeaders (headers );
@@ -127,6 +116,17 @@ public void testNonArray() throws IOException {
127116 }
128117 }
129118
119+ private void headerPublish (String ex , String to , List <String > cc , List <String > bcc ) throws IOException {
120+ if (cc != null ) {
121+ headers .put ("CC" , ccList );
122+ }
123+ if (bcc != null ) {
124+ headers .put ("BCC" , bccList );
125+ }
126+ props .setHeaders (headers );
127+ channel .basicPublish (ex , to , props , new byte [0 ]);
128+ }
129+
130130 private void expect (String [] expectedQueues , boolean usedCc ) throws IOException {
131131 GetResponse getResponse ;
132132 List <String > expectedList = Arrays .asList (expectedQueues );
0 commit comments