@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_1() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = null; fixture.getCompleteUrl(accessor); }
@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_1() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = null; fixture.getCompleteUrl(accessor); }
@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_3() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_Code(); fixture.getCompleteUrl(accessor); }
@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_3() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_Code(); fixture.getCompleteUrl(accessor); }
@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_2() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_Error(); fixture.getCompleteUrl(accessor); }
@Test(expected = OAuth2RequestException.class) public void testGetCompleteUrl_2() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_Error(); fixture.getCompleteUrl(accessor); }
@Test public void testGetCompleteUrl_4() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_ClientCredentials(); final String result = fixture.getCompleteUrl(accessor); Assert.assertNotNull(result); Assert .assertEquals( "http://www.example.com/token?client_id=clientId1&client_secret=clientSecret1&grant_type=client_credentials&scope=testScope", result); }
@Test public void testGetCompleteUrl_4() throws Exception { final ClientCredentialsGrantTypeHandler fixture = ClientCredentialsGrantTypeHandlerTest.ccgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_ClientCredentials(); final String result = fixture.getCompleteUrl(accessor); Assert.assertNotNull(result); Assert .assertEquals( "http://www.example.com/token?client_id=clientId1&client_secret=clientSecret1&grant_type=client_credentials&scope=testScope", result); }