use of com.github.scribejava.core.model.OAuthRequest in project scribejava by scribejava.
the class ObjectMother method createSampleOAuthRequestPort443v2.
public static OAuthRequest createSampleOAuthRequestPort443v2() {
final OAuthRequest request = new OAuthRequest(Verb.GET, "https://example.com:443/test");
request.addOAuthParameter(OAuthConstants.TIMESTAMP, "123456");
request.addOAuthParameter(OAuthConstants.CONSUMER_KEY, "AS#$^*@&");
request.addOAuthParameter(OAuthConstants.CALLBACK, "http://example/callback");
request.addOAuthParameter(OAuthConstants.SIGNATURE, "OAuth-Signature");
return request;
}
use of com.github.scribejava.core.model.OAuthRequest in project scribejava by scribejava.
the class ObjectMother method createSampleOAuthRequestPort8080.
public static OAuthRequest createSampleOAuthRequestPort8080() {
final OAuthRequest request = new OAuthRequest(Verb.GET, "http://example.com:8080");
request.addOAuthParameter(OAuthConstants.TIMESTAMP, "123456");
request.addOAuthParameter(OAuthConstants.CONSUMER_KEY, "AS#$^*@&");
request.addOAuthParameter(OAuthConstants.CALLBACK, "http://example/callback");
request.addOAuthParameter(OAuthConstants.SIGNATURE, "OAuth-Signature");
return request;
}
use of com.github.scribejava.core.model.OAuthRequest in project scribejava by scribejava.
the class ObjectMother method createSampleOAuthRequestPort443.
public static OAuthRequest createSampleOAuthRequestPort443() {
final OAuthRequest request = new OAuthRequest(Verb.GET, "https://example.com:443");
request.addOAuthParameter(OAuthConstants.TIMESTAMP, "123456");
request.addOAuthParameter(OAuthConstants.CONSUMER_KEY, "AS#$^*@&");
request.addOAuthParameter(OAuthConstants.CALLBACK, "http://example/callback");
request.addOAuthParameter(OAuthConstants.SIGNATURE, "OAuth-Signature");
return request;
}
use of com.github.scribejava.core.model.OAuthRequest in project scribejava by scribejava.
the class BaseStringExtractorTest method shouldThrowExceptionIfRquestHasNoOAuthParameters.
@Test(expected = OAuthParametersMissingException.class)
public void shouldThrowExceptionIfRquestHasNoOAuthParameters() {
final OAuthRequest request = new OAuthRequest(Verb.GET, "http://example.com");
extractor.extract(request);
}
use of com.github.scribejava.core.model.OAuthRequest in project scribejava by scribejava.
the class HeaderExtractorTest method shouldExceptionIfRequestHasNoOAuthParams.
@Test(expected = OAuthParametersMissingException.class)
public void shouldExceptionIfRequestHasNoOAuthParams() {
final OAuthRequest emptyRequest = new OAuthRequest(Verb.GET, "http://example.com");
extractor.extract(emptyRequest);
}
Aggregations