@Test public void testSetEncryptedSecret_2() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] encryptedSecret = new byte[] {}; fixture.setEncryptedSecret(encryptedSecret); }
@Test public void testSetEncryptedSecret_2() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] encryptedSecret = new byte[] {}; fixture.setEncryptedSecret(encryptedSecret); }
@Test public void testSetScope_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String scope = ""; fixture.setScope(scope); }
@Test public void testSetSecret_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] secret = new byte[] {}; fixture.setSecret(secret); }
@Test public void testSetTokenType_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String tokenType = ""; fixture.setTokenType(tokenType); }
@Test public void testSetEncryptedMacSecret_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] encryptedSecret = new byte[] {}; fixture.setEncryptedMacSecret(encryptedSecret); }
@Test public void testSetIssuedAt_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final long issuedAt = 1L; fixture.setIssuedAt(issuedAt); }
@Test public void testSetMacAlgorithm_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String algorithm = ""; fixture.setMacAlgorithm(algorithm); }
@Test public void testSetMacSecret_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] secret = new byte[] {}; fixture.setMacSecret(secret); }
@Test public void testSetExpiresAt_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final long expiresAt = 1L; fixture.setExpiresAt(expiresAt); }
@Test public void testSetGadgetUri_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String gadgetUri = ""; fixture.setGadgetUri(gadgetUri); }
@Test public void testSetMacAlgorithm_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String algorithm = ""; fixture.setMacAlgorithm(algorithm); }
@Test public void testSetSecret_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] secret = new byte[] {}; fixture.setSecret(secret); }
@Test public void testSetType_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final org.apache.shindig.gadgets.oauth2.OAuth2Token.Type type = org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS; fixture.setType(type); }
@Test public void testSetUser_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String user = ""; fixture.setUser(user); }
@Test public void testSetMacExt_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String macExt = ""; fixture.setMacExt(macExt); }
@Test public void testSetMacSecret_2() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final byte[] secret = new byte[] {}; fixture.setMacSecret(secret); }
@Test public void testSetServiceName_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String serviceName = ""; fixture.setServiceName(serviceName); }
@Test public void testSetTokenType_1() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri(""); fixture.setMacExt(""); fixture.setTokenType(""); final String tokenType = ""; fixture.setTokenType(tokenType); }
@Test public void testHashCode_3() throws Exception { final OAuth2TokenPersistence fixture = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); fixture.setServiceName(""); fixture.setEncryptedSecret(new byte[] {}); fixture.setUser(""); fixture.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); fixture.setIssuedAt(1L); fixture.setEncryptedMacSecret(new byte[] {}); fixture.setMacAlgorithm(""); fixture.setScope(""); fixture.setExpiresAt(1L); fixture.setMacSecret(new byte[] {}); fixture.setSecret(new byte[] {}); fixture.setGadgetUri((String) null); fixture.setMacExt(""); fixture.setTokenType(""); final int result = fixture.hashCode(); Assert.assertEquals(0, result); }