File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/org/scribe/builder
test/java/org/scribe/builder Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public ServiceBuilder provider(Api api)
8484 */
8585 public ServiceBuilder callback (String callback )
8686 {
87- Preconditions .checkValidOAuthCallback (callback , "Callback must be a valid URL or 'oob' " );
87+ Preconditions .checkNotNull (callback , "Callback can't be null " );
8888 this .callback = callback ;
8989 return this ;
9090 }
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ public void shouldAcceptASignatureType()
4646 }
4747
4848 @ Test (expected =IllegalArgumentException .class )
49- public void shouldNotAcceptAnInvalidUrlAsCallback ()
49+ public void shouldNotAcceptNullAsCallback ()
5050 {
51- builder .provider (ApiMock .class ).apiKey ("key" ).apiSecret ("secret" ).callback ("example.com" ).build ();
51+ builder .provider (ApiMock .class ).apiKey ("key" ).apiSecret ("secret" ).callback (null ).build ();
5252 }
5353
5454 @ Test
You can’t perform that action at this time.
0 commit comments