package org.zhenchao.passport.oauth.controllers;

import org.junit.Test;

/**
 * authorization code grant ut
 *
 * @author zhenchao.wang 2017-02-21 22:55
 * @version 1.0.0
 */
public class AuthorizationCodeGrantControllerTest {

    private static final long CLIENT_ID = 2882303761517520186L;

    private static final String REDIRECT_URI = "http://www.zhenchao.com";

    private static final String SCOPE = "1 4";

    @Test
    public void authorizeTest() throws Exception {
    }

}
@@ -54,22 +54,322 @@
 ort 
-org.junit.Test
+io.restassured.RestAssured;%0Aimport io.restassured.response.Response;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static org.zhenchao.passport.oauth.commons.GlobalConstant.PATH_OAUTH_AUTHORIZE_CODE;%0Aimport static org.zhenchao.passport.oauth.commons.GlobalConstant.PATH_ROOT_OAUTH
 ;%0A%0A/
@@ -719,63 +719,407 @@
    @
-Test%0A    public void authorizeTest() throws Exception %7B
+Before%0A    public void setUp() throws Exception %7B%0A        RestAssured.baseURI = %22http://localhost:8080%22 + PATH_ROOT_OAUTH;%0A    %7D%0A%0A    @Test%0A    public void authorizeTest() throws Exception %7B%0A        // %E4%B8%8D%E6%8C%87%E5%AE%9Aresponse_type%0A        Response response = RestAssured.get(PATH_OAUTH_AUTHORIZE_CODE);%0A        Assert.assertEquals(400, response.getStatusCode());%0A        System.out.println(response.asString());
 %0A   

add unit test