Package com.gnizr.db.dao

Examples of com.gnizr.db.dao.User


 
  public void testDeleteBookmark1() throws Exception{
    Bookmark bm = bookmarkManager.getBookmark(300);
    assertNotNull(bm);   
   
    User loggedInUser = userManager.getUser("gnizr");
    action.setLoggedInUser(loggedInUser);
    action.setUrl("http://zirr.us/");
    String result = action.doDeleteBookmark();
    assertEquals(ActionSupport.SUCCESS,result);
   
View Full Code Here


 
  public void testDeleteBookmark2() throws Exception{
    Bookmark bm = bookmarkManager.getBookmark(300);
    assertNotNull(bm);   
   
    User loggedInUser = userManager.getUser("hchen1");
    action.setLoggedInUser(loggedInUser);
    action.setUrl("http://zirr.us/");
    String result = action.doDeleteBookmark();
    assertEquals(ActionSupport.SUCCESS,result);
   
View Full Code Here

 
  public void testDeleteBookmark3() throws Exception{
    Bookmark bm = bookmarkManager.getBookmark(300);
    assertNotNull(bm);   
   
    User loggedInUser = userManager.getUser("hchen1");
    action.setLoggedInUser(loggedInUser);
    String result = action.doDeleteBookmark();
    assertEquals(ActionSupport.INPUT,result);
   
    bm = bookmarkManager.getBookmark(300);
View Full Code Here

    bm = bookmarkManager.getBookmark(300);
    assertNotNull(bm);       
  }
 
  public void testAddBookmark() throws Exception {
    User loggedInUser = userManager.getUser("hchen1");
    action.setLoggedInUser(loggedInUser);
    action.setTitle("CNN homepage");
    action.setUrl("http://cnn.com");
    String result = action.execute();
    assertEquals(ActionSupport.SUCCESS,result);
View Full Code Here

    assertEquals("CNN homepage",bm.getTitle());
    assertEquals("",bm.getNotes());
  }
 
  public void testAddBookmark2() throws Exception {
    User loggedInUser = userManager.getUser("hchen1");
    action.setLoggedInUser(loggedInUser);
    action.setTitle("CNN homepage");
    action.setNotes("<script type=\"javascript\">alert(343)</script>notes goes here...<h1>233</h1>");
    action.setUrl("http://cnn.com");
    String result = action.execute();
View Full Code Here

    assertEquals("CNN homepage",bm.getTitle());
    assertEquals("notes goes here... <H3>233</H3>",bm.getNotes().trim());
  }
 
  public void testUpdateBookmark() throws Exception{
    User loggedInUser = userManager.getUser("gnizr");
    action.setLoggedInUser(loggedInUser);
    action.setTags("abc");
    action.setUrl("http://zirr.us/");
    String result = action.execute();
    assertEquals(ActionSupport.SUCCESS,result);
View Full Code Here

    Bookmark bm = bookmarkManager.getBookmark(300);
    assertEquals("abc",bm.getTags());
  }
 
  public void testUpdateBookmark2() throws Exception {
    User loggedInUser = userManager.getUser("gnizr");
    action.setLoggedInUser(loggedInUser);
    action.setTags("abc");
    action.setId(300);
    action.setTitle("abc title and abc title");
    action.setUrl("http://zirr.us/");
View Full Code Here

    assertEquals("abc",bm.getTags());
    assertEquals("abc title and abc title",bm.getTitle());
  }
 
  public void testUpdateBookmark3() throws Exception{
    User loggedInUser = userManager.getUser("gnizr");
    action.setLoggedInUser(loggedInUser);
    action.setTags("abc");
    action.setId(300);
    action.setUrl("http://zirr.us.com/");
    String result = action.execute();
View Full Code Here

    assertEquals("abc",bm.getTags());
    assertEquals("http://zirr.us.com/",bm.getLink().getUrl());
  }
 
  public void testUpdateBookmark4() throws Exception{
    User loggedInUser = new User("gnizr");
    action.setLoggedInUser(loggedInUser);
    action.setUrl("http://newurl.com");
    action.setOldUrl("http://zirr.us/");
    String result = action.execute();
    assertEquals(ActionSupport.SUCCESS,result);
View Full Code Here

    pm2.setId(-2);
    pm2.setMarkerIconId(10);
    pm2.setNotes("this is marker2 notes <h1>hello</h1> <br> <hr>");
    pm2.setPoint(20.0, 40.00);
   
    User loggedInUser = userManager.getUser("hchen1");
    action.setLoggedInUser(loggedInUser);
    action.setTitle("CNN homepage");
    action.setUrl("http://cnn.com");
    action.setPointMarkers(new PointMarker[]{pm1,pm2});
   
View Full Code Here

TOP

Related Classes of com.gnizr.db.dao.User

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.