HpackDecoderTest cleanup

Motivation:
public ExpectedException fields should be final.
setUp method signature has a throws, but it isn't necessary
This commit is contained in:
Scott Mitchell 2018-01-19 07:36:23 -08:00 committed by Norman Maurer
parent 61dba95091
commit 322a062185

View File

@ -58,7 +58,7 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
public class HpackDecoderTest {
@Rule
public ExpectedException expectedException = ExpectedException.none();
public final ExpectedException expectedException = ExpectedException.none();
private HpackDecoder hpackDecoder;
private Http2Headers mockHeaders;
@ -78,7 +78,7 @@ public class HpackDecoderTest {
}
@Before
public void setUp() throws Http2Exception {
public void setUp() {
hpackDecoder = new HpackDecoder(8192, 32);
mockHeaders = mock(Http2Headers.class);
}