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 run a JUnit test programatically and specify a classpath
I am writing a custom tool that executes a set of test classes programmatically using JUnit 5.
When executing these tests, is there a way to define the classpath for the execution? (I have a set of ja...
carlspring
Votes: 0
Answers: 1
Pitest not finding test cases
I'm integrating mutaiton testing using pitest plugin in my intellij
here is my plugin for pitest
<plugin>
<groupId>org.pitest</groupId>
<artifac...
ramkr
Votes: 0
Answers: 0
Spring Boot @WebMvcTest having @MockBean null - using SpringRunner works
short:
there are difficulties in migrating to JUnit5 from Junit4. After removing @RunWith(SpringRunner.class) my @MockBean annotated service is null, although I am using `@WebMvcTest'. Why is it not w...
Kaspatoo
Votes: 0
Answers: 2
How to use embedded MongoDB with SpringBoot v2.6.2?
I'm using Spring Boot v2.6.2 and Java v17 and trying to test my MongoConnection without having a MongoDBService running because it should be tested with embedded in-memory MongoDB on the build machine...
Lobo
Votes: 0
Answers: 1