Java: add single-method class test case for mocking rule

Classes with only one public method should be compliant when mocked.
This commit is contained in:
Napalys Klicius
2025-08-11 11:23:01 +02:00
parent 22caa584ad
commit a9e9a62439
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/**
* Simple class with a single public method to test the edge case.
* When this single method is mocked, it means ALL public methods are mocked.
*/
public class EmployeeStatus {
public String getStatus() {
return "active";
}
}