コード例 #1
0
 @Test
 public void TopicDaoNotNullTest() {
   // topicService.createTopic("NEWS");
   // at this point the list should be empty because all records are deleted, however it should not
   // be equal to NULL
   List<Topic> topicsList = topicService.findAllTopics();
   assertEquals(0, topicsList.size());
 }
コード例 #2
0
 @Test
 public void CreateTopicTest() {
   topicService.createTopic("NEWS");
   List<Topic> topicsList = topicService.findAllTopics();
   assertEquals("NEWS", topicsList.get(0).getName());
 }