Problem Newbie here, presenting the code for close public scrutiny. Couple remarks regarding the context (taken from Princeton’s COS 226 […]
Tag: junit
Printing JUnit test results in file by changing and using the ‘out’ static variable of ‘System’ class
Problem I’m building a framework for comparing files (in my own way) using JUnit. All test cases have been packaged […]
Two BDD unit tests for an account repository with identical code
Problem I am testing my repository class: interface AccountRepository{ void save(Account account); Optional<Account> findById(Long id); } And when writing tests, […]
Bowling kata solution in java
Problem This is my first bowling kata solution in java. I would be very grateful if you say something about […]
Need Feedback on JUnit test comparing two timestamps
Problem I am writng a JUnit test case for the below methods : public final class LoggerService implements ILoggerService { […]
Does this unit test cover all edge cases? [closed]
Problem Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add […]
JUnit extending abstract test class
Problem I have been thinking quite some time and asked an StackOverflow question about extending abstract test classes, but I […]
Rainfall challenge: how big are the basins?
Problem August 2016 challenge The Rainfall Challenge Problem description is copied verbatim from the linked Code Review question: Problem Statement […]
Getting max and min values from Array
Problem My code works; I am just seeing if there’s an optimized way to write these methods or even better […]
Binary Search tree, leaves method [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Code not implemented or not working as intended: […]