@Test public void testToString_1() throws Exception { final OAuth2Client fixture = new OAuth2Client(MockUtils.getDummyEncrypter()); fixture.setAuthorizationUrl(""); fixture.setClientAuthenticationType(""); fixture.setServiceName(""); fixture.setRedirectUri(""); fixture.setGrantType(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setAllowModuleOverride(true); fixture.setAuthorizationHeader(true); fixture.setTokenUrl(""); fixture.setGadgetUri(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Accessor.Type.CONFIDENTIAL); fixture.setUrlParameter(true); fixture.setClientSecret(new byte[] {}); fixture.setClientId(""); final String result = fixture.toString(); Assert.assertNotNull(result); } }
@Test public void testToString_1() throws Exception { final OAuth2Client fixture = new OAuth2Client(MockUtils.getDummyEncrypter()); fixture.setAuthorizationUrl(""); fixture.setClientAuthenticationType(""); fixture.setServiceName(""); fixture.setRedirectUri(""); fixture.setGrantType(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setAllowModuleOverride(true); fixture.setAuthorizationHeader(true); fixture.setTokenUrl(""); fixture.setGadgetUri(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Accessor.Type.CONFIDENTIAL); fixture.setUrlParameter(true); fixture.setClientSecret(new byte[] {}); fixture.setClientId(""); final String result = fixture.toString(); Assert.assertNotNull(result); } }
@Test public void testOAuth2Client_1() throws Exception { final OAuth2Client result = new OAuth2Client(MockUtils.getDummyEncrypter()); Assert.assertNotNull(result); Assert.assertEquals(null, result.getAuthorizationUrl()); Assert.assertEquals(null, result.getClientAuthenticationType()); Assert.assertEquals(null, result.getClientId()); Assert.assertEquals(null, result.getClientSecret()); Assert.assertEquals(null, result.getEncryptedSecret()); Assert.assertEquals(null, result.getGadgetUri()); Assert.assertEquals("NONE", result.getGrantType()); Assert.assertEquals(null, result.getRedirectUri()); Assert.assertEquals(null, result.getServiceName()); Assert.assertEquals(null, result.getTokenUrl()); Assert.assertEquals(false, result.isAllowModuleOverride()); Assert.assertEquals(false, result.isAuthorizationHeader()); Assert.assertEquals(false, result.isUrlParameter()); Assert .assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.sample.OAuth2ClientImpl: serviceName = null , redirectUri = null , gadgetUri = null , clientId = null , grantType = NONE , type = UNKNOWN , grantType = NONE , tokenUrl = null , authorizationUrl = null , this.clientAuthenticationType = null , this.sharedToken = false, this.allowedDomains = []", result.toString()); }
@Test public void testOAuth2Client_1() throws Exception { final OAuth2Client result = new OAuth2Client(MockUtils.getDummyEncrypter()); Assert.assertNotNull(result); Assert.assertEquals(null, result.getAuthorizationUrl()); Assert.assertEquals(null, result.getClientAuthenticationType()); Assert.assertEquals(null, result.getClientId()); Assert.assertEquals(null, result.getClientSecret()); Assert.assertEquals(null, result.getEncryptedSecret()); Assert.assertEquals(null, result.getGadgetUri()); Assert.assertEquals("NONE", result.getGrantType()); Assert.assertEquals(null, result.getRedirectUri()); Assert.assertEquals(null, result.getServiceName()); Assert.assertEquals(null, result.getTokenUrl()); Assert.assertEquals(false, result.isAllowModuleOverride()); Assert.assertEquals(false, result.isAuthorizationHeader()); Assert.assertEquals(false, result.isUrlParameter()); Assert .assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.sample.OAuth2ClientImpl: serviceName = null , redirectUri = null , gadgetUri = null , clientId = null , grantType = NONE , type = UNKNOWN , grantType = NONE , tokenUrl = null , authorizationUrl = null , this.clientAuthenticationType = null , this.sharedToken = false, this.allowedDomains = []", result.toString()); }