Package org.apache.shindig.social.opensocial.spi

Examples of org.apache.shindig.social.opensocial.spi.PersonService


        injector = Guice.createInjector(module);
    }

    @Test
    public void bindsScopedBean() {
        PersonService personService = injector.getInstance(PersonService.class);
        assertThat(personService, is(notNullValue()));
        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }
View Full Code Here


        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }

    @Test
    public void bindsScopedBeanSingleton() {
        PersonService personService1 = injector.getInstance(PersonService.class);
        PersonService personService2 = injector.getInstance(PersonService.class);
        assertThat(personService1, is(sameInstance(personService2)));
    }
View Full Code Here

public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
    @SuppressWarnings("unused")
View Full Code Here

        injector = Guice.createInjector(module);
    }

    @Test
    public void bindsScopedBean() {
        PersonService personService = injector.getInstance(PersonService.class);
        assertThat(personService, is(notNullValue()));
        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }
View Full Code Here

        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }

    @Test
    public void bindsScopedBeanSingleton() {
        PersonService personService1 = injector.getInstance(PersonService.class);
        PersonService personService2 = injector.getInstance(PersonService.class);
        assertThat(personService1, is(sameInstance(personService2)));
    }
View Full Code Here

public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
    @SuppressWarnings("unused")
View Full Code Here

public class JPASocialModuleTest {

  @Test
  public void bootstrap() {
    Injector injector = Guice.createInjector(new JPASocialModule());
    @SuppressWarnings("unused")
    PersonService personService = injector.getInstance(PersonService.class);
    @SuppressWarnings("unused")
    ActivityService activityService = injector
        .getInstance(ActivityService.class);
    @SuppressWarnings("unused")
View Full Code Here

        injector = Guice.createInjector(module);
    }

    @Test
    public void bindsScopedBean() {
        PersonService personService = injector.getInstance(PersonService.class);
        assertThat(personService, is(notNullValue()));
        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }
View Full Code Here

        assertThat(personService, is(instanceOf(DefaultPersonService.class)));
    }

    @Test
    public void bindsScopedBeanSingleton() {
        PersonService personService1 = injector.getInstance(PersonService.class);
        PersonService personService2 = injector.getInstance(PersonService.class);
        assertThat(personService1, is(sameInstance(personService2)));
    }
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.spi.PersonService

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.