Package gwtappcontainer.server.apps.content

Examples of gwtappcontainer.server.apps.content.ContentAPI.addNewTag()


 
  @Test
  public void canGetCityContent() {
    ContentAPI contentAPI = new ContentAPI();
   
    contentAPI.addNewTag("ishakriyaschedule_mumbai", helper.loginAsDeveloper());
    contentAPI.setContent("content for mumbai", "ishakriyaschedule_mumbai", true, helper.loginAsPortalAdmin());
   
    GeoLocationAPI geoApi = new GeoLocationAPI();
    String content = geoApi.getContentForCity("ishakriyaschedule", "mumbai").object.toString();
    assertTrue(content.equals("content for mumbai"));               
View Full Code Here


 
  @Test
  public void cityAndTagAreCaseInsensitive() {
    ContentAPI contentAPI = new ContentAPI();
   
    contentAPI.addNewTag("ishakriyaschedule_mumbai", helper.loginAsDeveloper());
    contentAPI.setContent("content for mumbai", "ishakriyaschedule_mumbai", true, helper.loginAsPortalAdmin());
   
    GeoLocationAPI geoApi = new GeoLocationAPI();
    String content = geoApi.getContentForCity("ishakriyASchedule", "mUMBAi").object.toString();
    assertTrue(content.equals("content for mumbai"));
View Full Code Here

 
  @Test
  public void canGetDefaultContentIfCityContentNotAvailable() {
    ContentAPI contentAPI = new ContentAPI();
   
    contentAPI.addNewTag("ishakriyaschedule_default", helper.loginAsDeveloper());
    contentAPI.setContent("content for default", "ishakriyaschedule_default", true, helper.loginAsPortalAdmin());
   
    GeoLocationAPI geoApi = new GeoLocationAPI();
    String content = geoApi.getContentForCity("ishakriyASchedule", "mUMBAi").object.toString();
    assertTrue(content.equals("content for default"));
View Full Code Here

  @Test
  public void canGetDefaultContentIfCityContentNotPublished() {
    ContentAPI contentAPI = new ContentAPI();
   
    //add content for mumbai but don't publish it
    contentAPI.addNewTag("ishakriyaschedule_mumbai", helper.loginAsDeveloper());
    contentAPI.setContent("content for mumbai", "ishakriyaschedule_mumbai",
        false, helper.loginAsPortalAdmin());
   
    //add content for default
    contentAPI.addNewTag("ishakriyaschedule_default", helper.loginAsDeveloper());
View Full Code Here

    contentAPI.addNewTag("ishakriyaschedule_mumbai", helper.loginAsDeveloper());
    contentAPI.setContent("content for mumbai", "ishakriyaschedule_mumbai",
        false, helper.loginAsPortalAdmin());
   
    //add content for default
    contentAPI.addNewTag("ishakriyaschedule_default", helper.loginAsDeveloper());
    contentAPI.setContent("content for default", "ishakriyaschedule_default",
        true, helper.loginAsPortalAdmin());
   
    GeoLocationAPI api = new GeoLocationAPI();
    String content = api.getContentForCity("ishakriyaSchedule", "mumbai").object.toString();
View Full Code Here

  @Test
  public void canGetMostReleventContent() {
    ContentAPI contentAPI = new ContentAPI();
   
    //add tags
    contentAPI.addNewTag("testtag_melbourne", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_vic", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_australia", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_default", helper.loginAsDeveloper());
   
    //add content for city
View Full Code Here

  public void canGetMostReleventContent() {
    ContentAPI contentAPI = new ContentAPI();
   
    //add tags
    contentAPI.addNewTag("testtag_melbourne", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_vic", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_australia", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_default", helper.loginAsDeveloper());
   
    //add content for city
    contentAPI.setContent("content for melbourne", "testtag_melbourne",
View Full Code Here

    ContentAPI contentAPI = new ContentAPI();
   
    //add tags
    contentAPI.addNewTag("testtag_melbourne", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_vic", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_australia", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_default", helper.loginAsDeveloper());
   
    //add content for city
    contentAPI.setContent("content for melbourne", "testtag_melbourne",
        true, helper.loginAsPortalAdmin());
View Full Code Here

   
    //add tags
    contentAPI.addNewTag("testtag_melbourne", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_vic", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_australia", helper.loginAsDeveloper());
    contentAPI.addNewTag("testtag_default", helper.loginAsDeveloper());
   
    //add content for city
    contentAPI.setContent("content for melbourne", "testtag_melbourne",
        true, helper.loginAsPortalAdmin());
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.