Mockito.when().thenReturn() doesn't work or returns null
49
What is a NullPointerException, and how do I fix it?
120071
Checking for a null int value from a Java ResultSet
134603
Why doesn't a Javascript return statement work when the return value is on a new line?
6502
need help with test class with ApexPages.currentPage().getParameters().id
18757
System.UnexpectedException: No more than one executeBatch can be called from within a testmethod
7606
How do I unit test code that includes a callout?
119905
Mocking static methods with Mockito
35900
Lightning response.getReturnValue() question
29908
What's the best mock framework for Java?
151292
Missing return statement in a non-void method compiles
11830
Returning from a finally block in Java
64200
Can Java's NullPointerException be changed to report on which variable was null?
98645
How to unit test an object with database queries
2116
IllegalArgumentException or NullPointerException for a null parameter?
11945
How should I use try-with-resources with JDBC?
8738
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
6439
Using Moq to determine if a method is called