Examples of findTagAssertion()


Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

  public void testDeleteRDFInstanceTags() throws Exception{
    User user = new User(1);
    UserTag classTag = new UserTag(3);
   
    TagAssertionDao dao = getGnizrDao().getTagAssertionDao();
    List<TagAssertion> result = dao.findTagAssertion(user, null,manager.getRdfTypeProperty(),classTag);
    assertEquals(1,result.size());
   
    List<String> instTags = new ArrayList<String>();
    instTags.add("funstuff");
    instTags.add("stufffun");
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    List<String> instTags = new ArrayList<String>();
    instTags.add("funstuff");
    instTags.add("stufffun");
    assertTrue(manager.addRDFInstanceTags(user, classTag, instTags));
   
    result = dao.findTagAssertion(user, null,manager.getRdfTypeProperty(),classTag);
    assertEquals(3,result.size());
   
    assertTrue(manager.deleteRDFInstanceTags(user, classTag, instTags));
    result = dao.findTagAssertion(user, null,manager.getRdfTypeProperty(),classTag);
    assertEquals(1,result.size());
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

   
    result = dao.findTagAssertion(user, null,manager.getRdfTypeProperty(),classTag);
    assertEquals(3,result.size());
   
    assertTrue(manager.deleteRDFInstanceTags(user, classTag, instTags));
    result = dao.findTagAssertion(user, null,manager.getRdfTypeProperty(),classTag);
    assertEquals(1,result.size());
  }
 
 
  public void testDeleteRDFTypeTags() throws Exception{
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

   
    boolean isOkay = manager.deleteRDFTypeTags(user, subjectTag, tags2del);
    assertTrue(isOkay);
   
    TagAssertionDao dao = getGnizrDao().getTagAssertionDao();
    List<TagAssertion> result = dao.findTagAssertion(user, subjectTag,manager.getRdfTypeProperty(),null);
    assertEquals(0,result.size());
  }
 
 
 
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    assertEquals(7,result.size());
   
    TagAssertionDao dao = getGnizrDao().getTagAssertionDao();
   
    UserTag abcUserTag = manager.createUserTag(user, "abc");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),abcUserTag);
    assertEquals(1,result.size());
   
    UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
    assertEquals(1,result.size());
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    UserTag abcUserTag = manager.createUserTag(user, "abc");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),abcUserTag);
    assertEquals(1,result.size());
   
    UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
    assertEquals(1,result.size());
  }
 
  public void testAddSKOSRelatedTags2() throws Exception{
    User user = new User(1);
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    assertEquals(7,result.size());
   
    TagAssertionDao dao = getGnizrDao().getTagAssertionDao();
   
    UserTag abcUserTag = manager.createUserTag(new User(2), "abc");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),abcUserTag);
    assertEquals(1,result.size());
   
    UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
    assertEquals(1,result.size());
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    UserTag abcUserTag = manager.createUserTag(new User(2), "abc");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),abcUserTag);
    assertEquals(1,result.size());
   
    UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
    assertEquals(1,result.size());
   
    UserTag tag123_092 = manager.createUserTag(user, "123_092");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),tag123_092);
    assertEquals(1,result.size());
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
    assertEquals(1,result.size());
   
    UserTag tag123_092 = manager.createUserTag(user, "123_092");
    result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),tag123_092);
    assertEquals(1,result.size());
  }
 
 
  public void testDeleteSKOSRelatedTags() throws Exception{
View Full Code Here

Examples of com.gnizr.db.dao.tag.TagAssertionDao.findTagAssertion()

    assertTrue(isOkay);
   
    TagAssertionDao dao = getGnizrDao().getTagAssertionDao();   
    UserTag wiiUserTag = manager.createUserTag(user, "wii");
    List<TagAssertion> result =
      dao.findTagAssertion(user, subjectTag,manager.getSkosRelatedProperty(),wiiUserTag);
    assertEquals(0,result.size());
  }
 
 
  public void testDeleteSKOSRelatedTagsSymmetric() throws Exception{
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.