@Test public void testOAuth2EncryptionException_1() throws Exception { final Exception cause = new Exception(); final OAuth2EncryptionException result = new OAuth2EncryptionException(cause); Assert.assertNotNull(result); Assert.assertEquals(500, result.getHttpStatusCode()); Assert.assertEquals("java.lang.Exception", result.getMessage()); Assert.assertEquals("java.lang.Exception", result.getLocalizedMessage()); Assert .assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.OAuth2EncryptionException: java.lang.Exception", result.toString()); } }
@Test public void testOAuth2EncryptionException_1() throws Exception { final Exception cause = new Exception(); final OAuth2EncryptionException result = new OAuth2EncryptionException(cause); Assert.assertNotNull(result); Assert.assertEquals(500, result.getHttpStatusCode()); Assert.assertEquals("java.lang.Exception", result.getMessage()); Assert.assertEquals("java.lang.Exception", result.getLocalizedMessage()); Assert .assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.OAuth2EncryptionException: java.lang.Exception", result.toString()); } }