Better Parameterized Tests with Burst
[]
Jake Wharton
**class**)** **public** **class** **WebServerTest** **{** **enum** Protocol **{** HTTP_1_0**,** HTTP_1_1**,** HTTP_2 **}** @Parameters(name = "protocol={0}") public static Collection<Object[]> data() { return Arrays.asList( new Object[] { Protocol.HTTP_1_0 }, new Object[] { Protocol.HTTP_1_1 }, new Object[] { Protocol.HTTP_2 } ); } private final Protocol protocol; public WebServerTest(Protocol protocol) { this.protocol = protocol; } @Test public void testGetRequest() { dispatchGetRequest(protocol); } @Test public void testPostRequest() { dispatchPostRequest(protocol); } } **class**)** **public** **class** **WebServerTest** **{** **enum** Protocol **{** HTTP_1_0**,** HTTP_1_1**,** HTTP_2 **}** private final Protocol protocol; public WebServerTest(Protocol protocol) { this.protocol =…