All Questions
1,453
questions
0
votes
1
answer
20
views
Setting up Test Resources Folder in Eclipse
Is there any way to setup and mark a package as Test resources package/folder in Eclipse IDE for java project for Junit5 which can be easily done in IntelliJ IDE ?.
Thanks.
I tried exploring ways like ...
0
votes
0
answers
55
views
SpringBoot configuration
I'm trying to run the following code using JUnit test (Run As -> JUnit Test).
I'm using Maven for dependency management, so I would have and understand that it's a configuration issue.
I've seen ...
1
vote
0
answers
104
views
An internal error occurred during: "Check Configuration". loader constraint violation: when resolving method 'org.slf4j.ILoggerFactory
I have installed the cucumber plugin and after that whenever I am launching Eclipse IDE it is not responding. Getting the below error:
An internal error occurred during: "Check Configuration&...
0
votes
0
answers
31
views
I import JUnit to Eclipse and still does not work
I am new to Java and our teacher told us to import the JUnit libraries to our proyect to learn how to use it. I have tried importing the JUnit 5 library to the buildpath and it does not work, and also ...
1
vote
0
answers
22
views
Problem importing Junit in Eclipse(SpringToolSuite4)
I'm facing a problem when doing a simple test. I can't understand, since java is installed correctly.
https://postimg.cc/GBB0Ctpx
https://postimg.cc/8sR2DqT9
I was hoping to import the junit library ...
0
votes
1
answer
41
views
Running single JUnit Test case inside Eclipse
I have a set of JUnit test cases.
They successfully run in order when I run maven package.
The issue is when I right click and hit 'Run As JUnit Test Case' in Eclipse I get the following error.
...
0
votes
1
answer
81
views
JUnitParamsRunner cannot be resolved
I am trying to test using the JUnitParamsRunner using the Eclipse IDE but somehow the JUnitParamsRunner cannot be resolved . I am currently using JDK 21 and JUnit 5. The @Parameters cannot be resolved ...
0
votes
0
answers
18
views
Issues getting JUnit to not spit errors in eclipse
I've tried uninstalling and re-installing. I've made sure it's in the classpath. I asked my instructor once and they just told me I need to fix it rather than providing me with instructions or clues. ...
0
votes
0
answers
65
views
Cannot find Chrome binary with Selenium Webdriver using Eclipse IDE, Maven and JUnit
I'm starting to learn Selenium Webdriver with Maven project with Eclipse IDE and Junit. Once I ran the test it says that couldn't start the session and find the Chrome Binary and other one saying
...
0
votes
1
answer
786
views
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) thr
I got this error while i executed my mockito test file,here i have void main and also in the src/main/java i have another main how to resolve this error i have tried this from this website https://www....
0
votes
1
answer
70
views
Testing native library with jna and junit: tests quit abruptly after exiting the library
I'm making a small app to test the integration of a native library (linux and windows) into java code with jna.
To do this I just call a single method into the library and check the result using ...
0
votes
1
answer
38
views
ClassCastException when using JUnit5 @ExtendWith and a customer ParameterResolver
I am currently learning JUnit, and the nice new features it has. Specifically, I am working with a simple ParameterResolver, reproduced below
package com.junit.test.me.junit_testing;
import org.junit....
0
votes
0
answers
10
views
git stage in eclipse when all junit tests are passed
Is there a way in eclipse to git stage changes when all junit tests are green?
As one possible way to do it could be some macro functionality, I was looking for that, but only found this question: ...
0
votes
0
answers
108
views
Eclipse bug with JUnit and 'module-info.java'?
After a combination of Google / Stack Overflow searches I landed on this post which describes my exact problem:
StackOverflowQuestion
The post defines this issue is an eclipse bug of version '2022-06':...
0
votes
1
answer
43
views
Cannot customize the classpath of Eclipse JUnit Debug Configuration
In VS Code, I managed to configure the classpath for running the tests using settings.json section "java.test.config" / "classPaths". I set the "testKind"" to "...