Package org.apache.shindig.common

Examples of org.apache.shindig.common.PropertiesModule


   * Test that existing custom handlers won't be broken with the switch
   * to injecting List<ProviderHandler>.
   */
  public void testCustomHandler() {
    Injector injector = Guice.createInjector(new SocialApiGuiceModule(),
        new CustomAuthHandlerProviderModule(), new PropertiesModule());

    AuthenticationHandlerProvider provider = injector.getInstance(
        AuthenticationHandlerProvider.class);
    assertEquals(0, provider.get().size());

View Full Code Here


public class SocialApiGuiceModuleTest extends TestCase {
  private Injector injector;

  @Override public void setUp() throws Exception {
    super.setUp();
    injector = Guice.createInjector(new SocialApiGuiceModule(), new PropertiesModule(), new ConfigModule());
  }
View Full Code Here

  /**
   * Bind entity manager, services and entities used by samples
   */
  @Override
  protected void configure() {
    install(new PropertiesModule());
    install(new DefaultGuiceModule());
    install(new SocialApiGuiceModule());
    install(new OAuthModule());
    install(new JPASocialModule(entityManager));

View Full Code Here

public class SocialApiGuiceModuleTest extends Assert {
  private Injector injector;

  @Before
  public void setUp() throws Exception {
    injector = Guice.createInjector(new SocialApiGuiceModule(), new PropertiesModule(),
        new AbstractModule() {
          @Override
          protected void configure() {
            bind(OAuthDataStore.class).toInstance(EasyMock.createMock(OAuthDataStore.class));
          }
View Full Code Here

   * to injecting List<ProviderHandler>.
   */
  @Test
  public void testCustomHandler() {
    Injector injector = Guice.createInjector(new SocialApiGuiceModule(),
        new CustomAuthHandlerProviderModule(), new PropertiesModule());

    AuthenticationHandlerProvider provider = injector.getInstance(
        AuthenticationHandlerProvider.class);
    assertEquals(0, provider.get().size());

View Full Code Here

TOP

Related Classes of org.apache.shindig.common.PropertiesModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.