All Questions
2,208
questions
0
votes
0
answers
23
views
ParameterizedTest JUNIT5 with suspend functions
I'm trying to clean a little bit my code and when testing my datasource I'm repeating a lot the test that returns connection and service error, and I'd like to have a bunch of code that tests ...
1
vote
2
answers
43
views
Is it advisable to repeat an integration test that is used in more than one method?
I'm developing a project. This project has a repository (UserRepository) which is referenced by other parts of the project, I want to know if I have to test the repository method each time it is ...
0
votes
1
answer
49
views
How to use class member variables inside Junit-Mockito tests
class MyClass {
MyErrorServiceList myErrorServiceList; // myErrorServiceList is initialized by some complex method calls
public boolean processErrorServiceList() {
if (...
0
votes
0
answers
27
views
Android test class with time delay
I'm working on an IdleHandler class in my Android app to handle inactivity. The class looks like this:
class IdleHandler {
object TimerConstants {
const val ...
1
vote
1
answer
38
views
Sprinboot api application performance test
I want to test the performance of my backend REST API application written with Spring Boot under high requests.
How can I perform this process?
Which tools should I use and what should I do step by ...
1
vote
2
answers
43
views
Run JUnit tests from multiple projects at once
I have a repository of projects, each containing JUnit tests. I am looking for either a method or a framework to run them all at once, instead of manually running for each project.
After some research ...
1
vote
0
answers
85
views
AspectJ Internal Error: unable to add stackmap attributes. Unsupported class file major version 61
I have the following Kotlin application
------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------
Kotlin: 1.9.22
...
0
votes
1
answer
86
views
Mockito Test Fails with 'Wanted but not Invoked; Actually, there were zero interactions' Error
I'm facing issues with a unit test in a Spring Boot application where a specific repository method isn't being called as expected during the test of a service method. Despite setting up the test with ...
0
votes
0
answers
32
views
Spring Boot using a bean from a config class that is not specified in the @Import annotation
I am trying to implement two tests for a Spring Batch Job, each test needing one bean in particular to have different properties when the Spring Context loads it in.
One test class is the following:
@...
0
votes
0
answers
26
views
How I can test location service, and it's permissions with junit?
Is it possible to write to write instrumental tests and later on for location permissions? I'm relatively new to testing topic, and I haven't found much examples that could possibly help me with it.
0
votes
0
answers
32
views
Testing method annotated with @Cacheable
I have to test a method thats annotated with @Cacheable like this im not,that skilled so this may be wrong.
@Trace
@Cacheable(value = "pp-search")
public Response search(final ...
0
votes
1
answer
45
views
How to pass header to authentication in httpstarget method while using PACT?
While creating pact verification test I am using HttpsTestTarget method. But the problem is my service need send autentication token in the call. How can we run this? please advise.
Details: The ...
0
votes
0
answers
98
views
java.lang.AbstractMethodError at SpringExtension.java:381 in IntelliJ
i have tried to run some tests for my spring boot application that i`m currently working on in Java. I keep getting an 'AbstractMethodError' and i'm not entirely sure what has been causing it.
@...
0
votes
0
answers
131
views
Azure DevOps: How to associate jUnit/TestNG results with Test Case executions?
I have been running Java/SHAFT Engine(selenium wrapper+reporter) on an Azure Pipeline to get results. Typically, the SHAFT Engine HTML report had been enough, however in a project there is combined ...
-1
votes
1
answer
86
views
Allure Reports - Fail in middle steps scenario doesn't stop test
I'm using Java 11, Selenium, Junit, Allure Reports in my testing project.
I'd like in my allure report to failed steps doesn't stop test. Is it possible after fail "When" step test doesn't ...