Fix another buffer leak in XmlFrameDecoderTest

This commit is contained in:
Trustin Lee 2013-12-16 16:16:37 +09:00
parent 457cd2f6fa
commit 5e69955d23

View File

@ -162,9 +162,13 @@ public class XmlFrameDecoderTest {
actual.add(cause.getClass()); actual.add(cause.getClass());
} }
List<Object> expectedList = new ArrayList<Object>(); try {
Collections.addAll(expectedList, expected); List<Object> expectedList = new ArrayList<Object>();
assertThat(actual, is(expectedList)); Collections.addAll(expectedList, expected);
assertThat(actual, is(expectedList));
} finally {
ch.finish();
}
} }
private String sample(String number) throws IOException, URISyntaxException { private String sample(String number) throws IOException, URISyntaxException {