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 disable @Configuration initialization in WebFluxTest?
I would like to write tests for reactive controller using @WebFluxTest annotation, mocking all dependencies.
@WebFluxTest(controllers = MyController.class)
public class MyControllerTest {
@M...

miro
Votes: 0
Answers: 1
Combine REST connection with embedded Mongo integration in test
I'm using SpringBoot 2.6.2 together with flapdoodle 3.2.3 for test.
If I just want to test DB stuff, then @DataMongoTest works finde, because for tests I want to test it with an in-memory database. If...
Lobo
Votes: 0
Answers: 1
Logging each JUnit test on different log file in multi-thread environment
I would like to create a log for each JUnit Test I have run, each having its own file.
Actually, I have done that yesterday, with the help of Logback's SiftingAppender.
import java.lang.reflect.Annota...
CHANist
Votes: 0
Answers: 0