@Override
public List getAllPosts() {
List <Post> posts = postRepository.findAll();
return posts.stream().map(post -> mapToDto(post)).collect(Collectors.toList());
}
generated a log file
Exiting service.
17:25:49.107 [INFO] [Creating] [1/1] net.udemy.springbootrestapi.service.impl.PostServiceImpl.getAllPosts
17:25:49.107 [INFO] [Creating] [1/1] Diffblue AI was unable to find a test
17:25:49.108 [INFO] [Creating] [1/1] net.udemy.springbootrestapi.service.impl.PostServiceImpl
17:25:49.109 [INFO] [Creating] [1/1] Tests created: 0
17:25:49.114 [INFO] [Reporting]
17:25:49.115 [INFO] [Reporting] Summary:
17:25:49.115 [INFO] [Reporting] --------
17:25:49.115 [INFO] [Reporting] Total: 1 method
17:25:49.115 [INFO] [Reporting]
17:25:49.115 [INFO] [Reporting] No tests created for: 1 method
17:25:49.870 [INFO] [Reporting] License doesn’t allow multiple classes
17:25:49.870 [INFO] [Reporting] License doesn’t allow creating report.json