mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 16:32:11 +02:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
parent
a7256f5edd
commit
5d80f124ca
377 changed files with 2297 additions and 2373 deletions
|
@ -33,13 +33,13 @@ public class JsonResponseTest {
|
|||
JsonResponse jsonResponse = new JsonResponse(fakeResponse);
|
||||
|
||||
@Test
|
||||
public void testSetStatus() throws Exception {
|
||||
public void testSetStatus() {
|
||||
jsonResponse.setStatus(666);
|
||||
assertThat(fakeResponse.getStatus()).isEqualTo(666);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetResponseValue() throws Exception {
|
||||
public void testSetResponseValue() {
|
||||
ImmutableMap<String, String> responseValues = ImmutableMap.of(
|
||||
"hello", "world",
|
||||
"goodbye", "cruel world");
|
||||
|
@ -53,7 +53,7 @@ public class JsonResponseTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testSetHeader() throws Exception {
|
||||
public void testSetHeader() {
|
||||
jsonResponse.setHeader("header", "value");
|
||||
Map<String, Object> headerMap = fakeResponse.getHeaders();
|
||||
assertThat(headerMap.size()).isEqualTo(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue