@@ -191,37 +191,7 @@ void testCodingEmptyFile() throws Exception {
191
191
}
192
192
193
193
@ Test
194
- void testCodingFromFileSmaller () throws Exception {
195
- final WritableByteChannelMock channel = new WritableByteChannelMock (64 );
196
- final SessionOutputBuffer outbuf = new SessionOutputBufferImpl (1024 , 128 );
197
- final BasicHttpTransportMetrics metrics = new BasicHttpTransportMetrics ();
198
-
199
- final IdentityEncoder encoder = new IdentityEncoder (channel , outbuf , metrics );
200
-
201
- createTempFile ();
202
- RandomAccessFile testfile = new RandomAccessFile (this .tmpfile , "rw" );
203
- try {
204
- testfile .write ("stuff;" .getBytes (StandardCharsets .US_ASCII ));
205
- testfile .write ("more stuff" .getBytes (StandardCharsets .US_ASCII ));
206
- } finally {
207
- testfile .close ();
208
- }
209
-
210
- testfile = new RandomAccessFile (this .tmpfile , "rw" );
211
- try {
212
- final FileChannel fchannel = testfile .getChannel ();
213
- encoder .transfer (fchannel , 0 , 20 );
214
- } finally {
215
- testfile .close ();
216
- }
217
- final String s = channel .dump (StandardCharsets .US_ASCII );
218
-
219
- Assertions .assertFalse (encoder .isCompleted ());
220
- Assertions .assertEquals ("stuff;more stuff" , s );
221
- }
222
-
223
- @ Test
224
- public void testCodingFromFileFlushBuffer () throws Exception {
194
+ void testCodingFromFileFlushBuffer () throws Exception {
225
195
final WritableByteChannelMock channel = new WritableByteChannelMock (64 );
226
196
final SessionOutputBuffer outbuf = new SessionOutputBufferImpl (1024 , 128 );
227
197
final BasicHttpTransportMetrics metrics = new BasicHttpTransportMetrics ();
0 commit comments