python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to handle objects created within the method under test
I have the following model classes:
@Data
public class Address {
private String street;
private int number;
}
@Data
public class Person {
private String name;
private Address address;...
MehdiB
Votes: 0
Answers: 1
How to write Junit for jdbcTemplate call method
I am stuck in junit, I have to write junit for one of my dao mathod, here is my test code
@Test
public void testUpdateFeedback() throws SQLException {
List<SqlParameter> parameters = Arrays....
Braham Shakti
Votes: 0
Answers: 1
strange behaviour with mockito-core v3.6.0 using maven
I am using mockito-core dependency version 3.6.0 using maven as our dependency manager.
I observed that same versioned mockito-core used to come with 'compile' dependency scope for 'objenesis' jar
+- ...

Vishal
Votes: 0
Answers: 2
How to tetsing completely fill the coverage of my method with java and Junit?
I have a Java service that consults a DB and returns a list, into my service I call the method validacionCampos() of my Util class, this class validates if a field of the list of my service has a nul...
SteLim
Votes: 0
Answers: 1