@Test public void testGetTokenStore_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final GadgetOAuth2TokenStore result = fixture.getTokenStore(); Assert.assertNotNull(result); }
@Test public void testIsViewerAccessTokensEnabled_2() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), false); final boolean result = fixture.isViewerAccessTokensEnabled(); Assert.assertEquals(false, result); } }
@Test public void testIsViewerAccessTokensEnabled_2() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), false); final boolean result = fixture.isViewerAccessTokensEnabled(); Assert.assertEquals(false, result); } }
@Test public void testIsViewerAccessTokensEnabled_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final boolean result = fixture.isViewerAccessTokensEnabled(); Assert.assertEquals(true, result); }
@Test public void testOAuth2FetcherConfig_1() throws Exception { final GadgetOAuth2TokenStore tokenStore = new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)); final boolean viewerAccessTokensEnabled = true; final OAuth2FetcherConfig result = new OAuth2FetcherConfig(tokenStore, viewerAccessTokensEnabled); Assert.assertNotNull(result); Assert.assertEquals(true, result.isViewerAccessTokensEnabled()); }
@Test public void testOAuth2FetcherConfig_1() throws Exception { final GadgetOAuth2TokenStore tokenStore = new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)); final boolean viewerAccessTokensEnabled = true; final OAuth2FetcherConfig result = new OAuth2FetcherConfig(tokenStore, viewerAccessTokensEnabled); Assert.assertNotNull(result); Assert.assertEquals(true, result.isViewerAccessTokensEnabled()); }
@Test public void testGetTokenStore_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final GadgetOAuth2TokenStore result = fixture.getTokenStore(); Assert.assertNotNull(result); }
@Test public void testIsViewerAccessTokensEnabled_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final boolean result = fixture.isViewerAccessTokensEnabled(); Assert.assertEquals(true, result); }
@Test public void testGetOAuth2Store_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final OAuth2Store result = fixture.getOAuth2Store(); Assert.assertNotNull(result); Assert.assertEquals(false, result.clearCache()); }
@Test public void testGetOAuth2Store_1() throws Exception { final OAuth2FetcherConfig fixture = new OAuth2FetcherConfig(new GadgetOAuth2TokenStore( EasyMock.createNiceMock(OAuth2Store.class), EasyMock.createNiceMock(GadgetSpecFactory.class)), true); final OAuth2Store result = fixture.getOAuth2Store(); Assert.assertNotNull(result); Assert.assertEquals(false, result.clearCache()); }