// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/oauth2/Application.java
// @Data
// public class Application {
// 
//     @SerializedName("id")
//     private String id;
// 
//     @SerializedName("name")
//     private String name;
// 
//     @SerializedName("client_secret")
//     private String clientSecret;
// 
//     @SerializedName("client_id")
//     private String clientId;
// 
//     @SerializedName("redirect_uri")
//     private List<String> redirectUri;
// 
//     @SerializedName("created_at")
//     private Long createdAt;
// 
//     public Application(String name, List<String> redirectUri, String clientId, String clientSecret) {
//         this.name = name;
//         this.redirectUri = redirectUri;
//         this.clientId = clientId;
//         this.clientSecret = clientSecret;
//     }
// 
//     public Application(String name, List<String> redirectUri) {
//         this(name, redirectUri, null, null);
//     }
// }


import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import com.github.vaibhavsinha.kong.BaseTest;
import com.github.vaibhavsinha.kong.model.plugin.authentication.oauth2.Application;
import com.github.vaibhavsinha.kong.model.plugin.authentication.oauth2.ApplicationList;
package com.github.vaibhavsinha.kong.plugin;




@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RetrofitOAuth2ManageServiceTest extends BaseTest {

    private static String CONSUMER_ID = "53fe86c9-59d8-48c1-94ef-2e6142fadf85";


    // ------------------------------------------------------------------------------------

    private static String appName = "testApp-20170807113035732";
    private static String appClientId = "dc80e4ebf33445faafad96c1b4701d48";
    private static String appClientSecret = "22435791881e40dc97fd05f28eb86488";
    private static List<String> appRedirectUrl = new ArrayList<>();
    static {
        appRedirectUrl.add("http://10.5.227.17:3000/callback");
    }


// Path: src/main/java/com/github/vaibhavsinha/kong/model/plugin/authentication/oauth2/Application.java
// @Data
// public class Application {
// 
//     @SerializedName("id")
//     private String id;
// 
//     @SerializedName("name")
//     private String name;
// 
//     @SerializedName("client_secret")
//     private String clientSecret;
// 
//     @SerializedName("client_id")
//     private String clientId;
// 
//     @SerializedName("redirect_uri")
//     private List<String> redirectUri;
// 
//     @SerializedName("created_at")
//     private Long createdAt;
// 
//     public Application(String name, List<String> redirectUri, String clientId, String clientSecret) {
//         this.name = name;
//         this.redirectUri = redirectUri;
//         this.clientId = clientId;
//         this.clientSecret = clientSecret;
//     }
// 
//     public Application(String name, List<String> redirectUri) {
//         this(name, redirectUri, null, null);
//     }
// }


// Path: src/test/java/com/github/vaibhavsinha/kong/plugin/RetrofitOAuth2ManageServiceTest.java
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import com.github.vaibhavsinha.kong.BaseTest;
import com.github.vaibhavsinha.kong.model.plugin.authentication.oauth2.Application;
import com.github.vaibhavsinha.kong.model.plugin.authentication.oauth2.ApplicationList;

package com.github.vaibhavsinha.kong.plugin;




@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RetrofitOAuth2ManageServiceTest extends BaseTest {

    private static String CONSUMER_ID = "53fe86c9-59d8-48c1-94ef-2e6142fadf85";


    // ------------------------------------------------------------------------------------

    private static String appName = "testApp-20170807113035732";
    private static String appClientId = "dc80e4ebf33445faafad96c1b4701d48";
    private static String appClientSecret = "22435791881e40dc97fd05f28eb86488";
    private static List<String> appRedirectUrl = new ArrayList<>();
    static {
        appRedirectUrl.add("http://10.5.227.17:3000/callback");
    }


    private Application cachedApp;