package com.uwetrottmann.getglue;

import junit.framework.TestCase;
import org.apache.oltu.oauth2.client.OAuthClient;
import org.apache.oltu.oauth2.client.URLConnectionClient;
import org.apache.oltu.oauth2.client.request.OAuthClientRequest;
import org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse;
import org.apache.oltu.oauth2.common.exception.OAuthProblemException;
import org.apache.oltu.oauth2.common.exception.OAuthSystemException;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public abstract class BaseTestCase extends TestCase {

    protected static final String CLIENT_ID = "7FD930E5C9D030F696ACA631343EB3";
    protected static final String CLIENT_SECRET = "EB4B93F673B95A5A2460CF983BB0A4";
    private static final String TEMPORARY_ACCESS_TOKEN = "FA1429A2D4B3FA39EF57E15689A6B4";  /* Expires Dec. 21, 2013, 8:35 a.m. */
    protected static final String REDIRECT_URI = "http://localhost";
    private final ServiceManager mManager = new ServiceManager();

    @Override
    protected void setUp() throws OAuthSystemException, IOException, OAuthProblemException {
        getManager().setIsDebug(true);

        getManager().setAccessToken(TEMPORARY_ACCESS_TOKEN);
    }

    protected final ServiceManager getManager() {
        return mManager;
    }
}

@@ -65,257 +65,8 @@
 se;%0A
-import org.apache.oltu.oauth2.client.OAuthClient;%0Aimport org.apache.oltu.oauth2.client.URLConnectionClient;%0Aimport org.apache.oltu.oauth2.client.request.OAuthClientRequest;%0Aimport org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse;%0A
 impo
@@ -220,84 +220,19 @@
 .io.
-BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader
+IOException
 ;%0A%0Ap
@@ -862,17 +862,16 @@
 (true);%0A
-%0A
         

Remove unused imports.