use of it.vige.rubia.search.SearchCriteria in project rubia-forums by flashboss.
the class SearchTopicTest method searchTopicsWithReset.
@Test
public void searchTopicsWithReset() {
goTo(driver);
SearchCriteria searchForumCriteria = new SearchCriteria();
searchForumCriteria.setAuthor(null);
searchForumCriteria.setCategory(null);
searchForumCriteria.setDisplayAs(TOPICS.name());
searchForumCriteria.setForum(null);
searchForumCriteria.setKeywords("First");
searchForumCriteria.setPageNumber(0);
searchForumCriteria.setPageSize(0);
searchForumCriteria.setSearching(null);
searchForumCriteria.setSortBy(null);
searchForumCriteria.setSortOrder(null);
searchForumCriteria.setTimePeriod(null);
reset(driver, searchForumCriteria);
List<Topic> topics = getTopics(driver, searchForumCriteria);
assertTrue(topics == null);
}
use of it.vige.rubia.search.SearchCriteria in project rubia-forums by flashboss.
the class SearchTopicTest method verifyPostProfileFromTopicPage.
@Test
public void verifyPostProfileFromTopicPage() {
goTo(driver);
SearchCriteria searchForumCriteria = new SearchCriteria();
searchForumCriteria.setAuthor("root");
searchForumCriteria.setCategory(null);
searchForumCriteria.setDisplayAs(TOPICS.name());
searchForumCriteria.setForum(null);
searchForumCriteria.setKeywords("Topic");
searchForumCriteria.setPageNumber(0);
searchForumCriteria.setPageSize(0);
searchForumCriteria.setSearching(null);
searchForumCriteria.setSortBy(null);
searchForumCriteria.setSortOrder(null);
searchForumCriteria.setTimePeriod(null);
List<Topic> topics = searchTopic(driver, searchForumCriteria);
Topic topic = topics.get(2);
Poster poster = getPoster(driver, topic);
assertTrue(poster != null);
assertEquals("root", poster.getUserId());
assertTrue(poster.getPostCount() >= 4);
}
use of it.vige.rubia.search.SearchCriteria in project rubia-forums by flashboss.
the class SearchTopicTest method searchTopicsNoFields.
@Test
public void searchTopicsNoFields() {
goTo(driver);
SearchCriteria searchForumCriteria = new SearchCriteria();
List<Topic> topics = searchTopic(driver, searchForumCriteria);
assertTrue(topics == null);
}
use of it.vige.rubia.search.SearchCriteria in project rubia-forums by flashboss.
the class SearchPostTest method searchPostsNoFields.
@Test
public void searchPostsNoFields() {
goTo(driver);
SearchCriteria searchTopicCriteria = new SearchCriteria();
List<Post> posts = searchPost(driver, searchTopicCriteria);
assertTrue(posts == null);
}
Aggregations