@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl( "PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl("PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); address.setLatitude(28.3043F); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl("PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); address.setLatitude(28.3043F); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl("PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); address.setLatitude(28.3043F); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl( "PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl( "PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(new Date()); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(new Date());
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }
canonical.setActivities(Lists.newArrayList("Coding Shindig")); Address address = new AddressImpl("PoBox 3565, 1 OpenStandards Way, Apache, CA"); address.setCountry("US"); address.setLatitude(28.3043F); canonical.setCars(Lists.newArrayList("beetle", "prius")); canonical.setChildren("3"); AddressImpl location = new AddressImpl(); location.setLatitude(48.858193F); location.setLongitude(2.29419F); canonical.setCurrentLocation(location); job1.setAddress(new AddressImpl("1 Shindig Drive")); job1.setDescription("lots of coding"); job1.setEndDate(buildDate("2010-10-10")); job2.setAddress(new AddressImpl("1 Skid Row")); job2.setDescription(""); job2.setEndDate(buildDate("1995-01-01"));
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }