mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
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:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user