package com.uwetrottmann.thetvdb;

import org.junit.BeforeClass;

public abstract class BaseTestCase {

    // Do NOT use this token in your application, for testing purposes only!
    private static final String JSON_WEB_TOKEN = "";

    private static final boolean DEBUG = true;

    private static final TheTvdb theTvdb = new TheTvdb();

    @BeforeClass
    public static void setUpOnce() {
        theTvdb.setJsonWebToken(JSON_WEB_TOKEN);
        theTvdb.setIsDebug(DEBUG);
    }

    protected final TheTvdb getTheTvdb() {
        return theTvdb;
    }

}

package com.uwetrottmann.thetvdb;

import org.junit.BeforeClass;

public abstract class BaseTestCase {

    // Do NOT use this token in your application, for testing purposes only!
    private static final String JSON_WEB_TOKEN = "";

    private static final boolean DEBUG = true;

    private static final TheTvdb theTvdb = new TheTvdb();

    @BeforeClass
    public static void setUpOnce() {
        if (JSON_WEB_TOKEN.length() == 0) {
            System.err.println("No valid JSON Web Token is set. API methods other than /login will fail.");
        }
        theTvdb.setJsonWebToken(JSON_WEB_TOKEN);
        theTvdb.setIsDebug(DEBUG);
    }

    protected final TheTvdb getTheTvdb() {
        return theTvdb;
    }

}

Add warning if no JSON web token is set.
Add warning if no JSON web token is set.
