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