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 48
48
import org .gitlab4j .api .models .MergeRequest ;
49
49
import org .gitlab4j .api .models .Milestone ;
50
50
import org .gitlab4j .api .models .Note ;
51
+ import org .gitlab4j .api .models .OauthTokenResponse ;
51
52
import org .gitlab4j .api .models .Pipeline ;
52
53
import org .gitlab4j .api .models .Project ;
53
54
import org .gitlab4j .api .models .ProjectHook ;
@@ -418,6 +419,17 @@ public void testImpersonationToken() {
418
419
}
419
420
}
420
421
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
+
421
433
@ Test
422
434
public void testLabels () {
423
435
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