package com.uwetrottmann.thetvdb.services;

import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.entities.LoginData;
import com.uwetrottmann.thetvdb.entities.Token;
import org.junit.Test;

public class AuthenticationTest extends BaseTestCase {


    private static final String API_KEY = "";

    @Test
    public void test_login() {
        Token token = getTheTvdb().authentication().login(new LoginData(API_KEY));
        System.out.println("Retrieved token: " + token.token + " (valid for 1 hour)");
    }

}

@@ -352,16 +352,155 @@
 gin() %7B%0A
+        if (API_KEY.length() == 0) %7B%0A            throw new IllegalArgumentException(%22Set your TheTVDB API key to test login.%22);%0A        %7D%0A%0A
         

Add API key error when testing login.