22
22
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_FORBIDDEN ;
23
23
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_INTERNAL_SERVER_ERROR ;
24
24
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_NOT_FOUND ;
25
- import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_NOT_IMPLEMENTED ;
26
25
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_OK ;
27
26
import static tech .pegasys .teku .infrastructure .http .HttpStatusCodes .SC_UNAUTHORIZED ;
28
27
import static tech .pegasys .teku .infrastructure .restapi .MetadataTestUtil .getResponseStringFromMetadata ;
@@ -69,7 +68,7 @@ void shouldGetGraffiti() throws JsonProcessingException {
69
68
70
69
handler .handleRequest (request );
71
70
72
- GetGraffiti .GraffitiResponse expectedResponse =
71
+ final GetGraffiti .GraffitiResponse expectedResponse =
73
72
new GetGraffiti .GraffitiResponse (publicKey , stringGraffiti );
74
73
assertThat (request .getResponseCode ()).isEqualTo (SC_OK );
75
74
assertThat (request .getResponseBody ()).isEqualTo (expectedResponse );
@@ -89,7 +88,8 @@ void shouldGetEmptyGraffiti() throws JsonProcessingException {
89
88
90
89
handler .handleRequest (request );
91
90
92
- GetGraffiti .GraffitiResponse expectedResponse = new GetGraffiti .GraffitiResponse (publicKey , "" );
91
+ final GetGraffiti .GraffitiResponse expectedResponse =
92
+ new GetGraffiti .GraffitiResponse (publicKey , "" );
93
93
assertThat (request .getResponseCode ()).isEqualTo (SC_OK );
94
94
assertThat (request .getResponseBody ()).isEqualTo (expectedResponse );
95
95
}
@@ -141,9 +141,4 @@ void metadata_shouldHandle403() throws JsonProcessingException {
141
141
void metadata_shouldHandle500 () throws JsonProcessingException {
142
142
verifyMetadataErrorResponse (handler , SC_INTERNAL_SERVER_ERROR );
143
143
}
144
-
145
- @ Test
146
- void metadata_shouldHandle501 () throws JsonProcessingException {
147
- verifyMetadataErrorResponse (handler , SC_NOT_IMPLEMENTED );
148
- }
149
144
}
0 commit comments