@@ -84,23 +84,23 @@ public void testNoMethod() throws Exception {
8484 assertEquals (AMQP .FRAME_METHOD , unexpectedFrameError .getExpectedFrameType ());
8585 return ;
8686 }
87-
87+
8888 fail ("No UnexpectedFrameError thrown" );
8989 }
90-
90+
9191 public void testMethodThenBody () throws Exception {
9292 List <Frame > frames = new ArrayList <Frame >();
93-
93+
9494 byte [] contentBody = new byte [10 ];
9595 int channelNumber = 0 ;
96-
96+
9797 Publish method = new Publish (1 , "test" , "test" , false , false );
9898
9999 frames .add (method .toFrame (0 ));
100100 frames .add (Frame .fromBodyFragment (channelNumber , contentBody , 0 , contentBody .length ));
101-
101+
102102 myFrameHandler .setFrames (frames .iterator ());
103-
103+
104104 try {
105105 new AMQConnection (factory .getUsername (),
106106 factory .getPassword (),
@@ -120,7 +120,7 @@ public void testMethodThenBody() throws Exception {
120120 assertEquals (AMQP .FRAME_HEADER , unexpectedFrameError .getExpectedFrameType ());
121121 return ;
122122 }
123-
123+
124124 fail ("No UnexpectedFrameError thrown" );
125125 }
126126
@@ -132,7 +132,7 @@ private UnexpectedFrameError findUnexpectedFrameError(Exception e) {
132132 return (UnexpectedFrameError ) t ;
133133 }
134134 }
135-
135+
136136 return null ;
137137 }
138138
@@ -174,7 +174,6 @@ public int getPort() {
174174 return -1 ;
175175 }
176176
177- @ Override
178177 public void flush () throws IOException {
179178 // no need to implement this: don't bother writing the frame
180179 }
0 commit comments