@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()); }
@Test public void CreateTopicTest() { topicService.createTopic("NEWS"); List<Topic> topicsList = topicService.findAllTopics(); assertEquals("NEWS", topicsList.get(0).getName()); }