Skip to content

Commit 30f1bfa

Browse files
committed
added header with api key in okhttp get test
1 parent 14f8cba commit 30f1bfa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/java/com/faisalkhatri/okhttppoc/TestGetRequests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public Iterator<Object[]> getUsers () {
6868
public void testGetRequestWithOkHttp (final int userId) throws IOException {
6969
final OkHttpClient client = new OkHttpClient ();
7070
final Request request = new Request.Builder ().url (URL + userId)
71+
.header ("x-api-key", "reqres-free-v1")
7172
.get ()
7273
.build ();
7374

0 commit comments

Comments
 (0)