@Test public void testOAuth2GadgetBinding_1() throws Exception { final OAuth2GadgetBinding result = new OAuth2GadgetBinding("xxx", "yyy", "zzz", false); Assert.assertNotNull(result); Assert.assertEquals("zzz", result.getClientName()); Assert.assertEquals("yyy", result.getGadgetServiceName()); Assert.assertEquals("xxx", result.getGadgetUri()); Assert.assertEquals(false, result.isAllowOverride()); }
@Test public void testEquals_1() throws Exception { final Object obj = new OAuth2GadgetBinding(MockUtils.GADGET_URI1, MockUtils.SERVICE_NAME, "xxx", true); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(true, result); }
final boolean allowOverride = settings .getBoolean(JSONOAuth2Persister.ALLOW_MODULE_OVERRIDE); final OAuth2GadgetBinding gadgetBinding = new OAuth2GadgetBinding(gadgetUri, gadgetServiceName, clientName, allowOverride); ret.put(gadgetBinding.getGadgetUri() + ':' + gadgetBinding.getGadgetServiceName(), gadgetBinding);
@Test public void testIsAllowOverride_1() throws Exception { final boolean result = OAuth2GadgetBindingTest.FIXTURE.isAllowOverride(); Assert.assertEquals(true, result); }
@Test public void testGetGadgetServiceName_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getGadgetServiceName(); Assert.assertEquals(MockUtils.SERVICE_NAME, result); }
@Test public void testGetClientName_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getClientName(); Assert.assertEquals("xxx", result); }
@Test public void testGetGadgetUri_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getGadgetUri(); Assert.assertEquals(MockUtils.GADGET_URI1, result); }
@Test public void testEquals_2() throws Exception { final Object obj = new Object(); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(false, result); }
@Test public void testToString_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.toString(); Assert.assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.sample.OAuth2GadgetBinding: gadgetUri = " + MockUtils.GADGET_URI1 + " , gadgetServiceName = " + MockUtils.SERVICE_NAME + " , allowOverride = true", result); } }
@Test public void testHashCode_1() throws Exception { final int result = OAuth2GadgetBindingTest.FIXTURE.hashCode(); Assert.assertEquals(-1901114596, result); }
@Test public void testIsAllowOverride_2() throws Exception { final boolean result = OAuth2GadgetBindingTest.FIXTURE.isAllowOverride(); Assert.assertEquals(true, result); }
@Test public void testGetGadgetServiceName_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getGadgetServiceName(); Assert.assertEquals(MockUtils.SERVICE_NAME, result); }
@Test public void testGetClientName_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getClientName(); Assert.assertEquals("xxx", result); }
@Test public void testGetGadgetUri_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.getGadgetUri(); Assert.assertEquals(MockUtils.GADGET_URI1, result); }
@Test public void testEquals_2() throws Exception { final Object obj = new Object(); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(false, result); }
@Test public void testToString_1() throws Exception { final String result = OAuth2GadgetBindingTest.FIXTURE.toString(); Assert.assertEquals( "org.apache.shindig.gadgets.oauth2.persistence.sample.OAuth2GadgetBinding: gadgetUri = " + MockUtils.GADGET_URI1 + " , gadgetServiceName = " + MockUtils.SERVICE_NAME + " , allowOverride = true", result); } }
@Test public void testHashCode_1() throws Exception { final int result = OAuth2GadgetBindingTest.FIXTURE.hashCode(); Assert.assertEquals(-1901114596, result); }
@Test public void testOAuth2GadgetBinding_1() throws Exception { final OAuth2GadgetBinding result = new OAuth2GadgetBinding("xxx", "yyy", "zzz", false); Assert.assertNotNull(result); Assert.assertEquals("zzz", result.getClientName()); Assert.assertEquals("yyy", result.getGadgetServiceName()); Assert.assertEquals("xxx", result.getGadgetUri()); Assert.assertEquals(false, result.isAllowOverride()); }
@Test public void testEquals_1() throws Exception { final Object obj = new OAuth2GadgetBinding(MockUtils.GADGET_URI1, MockUtils.SERVICE_NAME, "xxx", true); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(true, result); }
@Test public void testIsAllowOverride_1() throws Exception { final boolean result = OAuth2GadgetBindingTest.FIXTURE.isAllowOverride(); Assert.assertEquals(true, result); }