File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
resources/org/gitlab4j/api Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 4848import org .gitlab4j .api .models .MergeRequest ;
4949import org .gitlab4j .api .models .Milestone ;
5050import org .gitlab4j .api .models .Note ;
51+ import org .gitlab4j .api .models .OauthTokenResponse ;
5152import org .gitlab4j .api .models .Pipeline ;
5253import org .gitlab4j .api .models .Project ;
5354import org .gitlab4j .api .models .ProjectHook ;
@@ -418,6 +419,17 @@ public void testImpersonationToken() {
418419 }
419420 }
420421
422+ @ Test
423+ public void testOauthToken () {
424+
425+ try {
426+ OauthTokenResponse token = makeFakeApiCall (OauthTokenResponse .class , "oauth-token" );
427+ assertTrue (compareJson (token , "oauth-token" ));
428+ } catch (Exception e ) {
429+ e .printStackTrace ();
430+ }
431+ }
432+
421433 @ Test
422434 public void testLabels () {
423435
Original file line number Diff line number Diff line change 1+ {
2+ "access_token" : " 7e6f7f02d5ce8e5c3d2123a210674ccea6b70547c77132b0dca502f8a4df760f" ,
3+ "token_type" : " bearer" ,
4+ "refresh_token" : " c29a678544ceb726a2a605e44502fa5cad8752cfab42aeae21413cacb703178f" ,
5+ "scope" : " api" ,
6+ "created_at" : 1514489666
7+ }
You can’t perform that action at this time.
0 commit comments