@Test public void testEquals_3() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(new Object())); }
@Test public void testEquals_3() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(new Object())); }
@Test public void testEquals_2() throws Exception { final boolean result = OAuth2TokenPersistenceTest.accessToken .equals(OAuth2TokenPersistenceTest.refreshToken); Assert.assertFalse(result); }
@Test public void testEquals_4() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(null)); }
@Test public void testEquals_2() throws Exception { final boolean result = OAuth2TokenPersistenceTest.accessToken .equals(OAuth2TokenPersistenceTest.refreshToken); Assert.assertFalse(result); }
@Test public void testEquals_4() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(null)); }
@Test public void testEquals_1() throws Exception { final OAuth2TokenPersistence obj = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); obj.setServiceName(MockUtils.SERVICE_NAME); obj.setUser(MockUtils.USER); obj.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); obj.setIssuedAt(0L); obj.setEncryptedMacSecret(new byte[] {}); obj.setMacAlgorithm(""); obj.setScope(MockUtils.SCOPE); obj.setExpiresAt(1L); obj.setMacSecret(new byte[] {}); obj.setSecret(new byte[] {}); obj.setGadgetUri(MockUtils.GADGET_URI1); obj.setMacExt(""); obj.setTokenType(OAuth2Message.BEARER_TOKEN_TYPE); final boolean result = OAuth2TokenPersistenceTest.accessToken.equals(obj); Assert.assertTrue(result); }
@Test public void testEquals_1() throws Exception { final OAuth2TokenPersistence obj = new OAuth2TokenPersistence(MockUtils.getDummyEncrypter()); obj.setServiceName(MockUtils.SERVICE_NAME); obj.setUser(MockUtils.USER); obj.setType(org.apache.shindig.gadgets.oauth2.OAuth2Token.Type.ACCESS); obj.setIssuedAt(0L); obj.setEncryptedMacSecret(new byte[] {}); obj.setMacAlgorithm(""); obj.setScope(MockUtils.SCOPE); obj.setExpiresAt(1L); obj.setMacSecret(new byte[] {}); obj.setSecret(new byte[] {}); obj.setGadgetUri(MockUtils.GADGET_URI1); obj.setMacExt(""); obj.setTokenType(OAuth2Message.BEARER_TOKEN_TYPE); final boolean result = OAuth2TokenPersistenceTest.accessToken.equals(obj); Assert.assertTrue(result); }