All Questions
27 questions
0
votes
0
answers
37
views
How to debug a cucumber maven test case in eclipse?
How to debug a cucumber maven testcase having particular tag for example I need to debug a test case which is having tag as @smoke.
I tried debugging through debug configuration by passing goal as ...
-1
votes
1
answer
535
views
Debugging a single java test method in eclipse [closed]
I have a test class that contains several test methods and I want to single out a test method to debug. So the first question is: Can I do this in Eclipse? or am I only allowed to debug the whole test ...
1
vote
0
answers
93
views
Eclipse JUnit debug mode terminating while paused/without me stepping
I've been working with Eclipse for several months without this issue. Suddenly, while I'm trying to debug, Eclipse is skipping ahead and finishing the test without me doing anything. I.E I've got a ...
0
votes
1
answer
78
views
Junit,Debugging,Sync in Eclipse Oxygen.1a Release (4.7.1a)
lets say you have following classes:
public class A {
public void run() {
synchronized(B.class) {
System.out.println("A: here");
}
}
}
public class B {
public void run() {
...
0
votes
1
answer
585
views
How to print value (for debugging) when running program through JUNIT
I would like to preface by saying I'm well versed with python but only slightly with java and hardly with JUNT
When debugging in python I would normally print out the value that I think could be ...
0
votes
0
answers
43
views
JUnit - which step is executed now?
I use JUnit to run tests which have been designed for Cucumber and run on Firefox, but now they were transferred into work on Windows application.
When JUnit runs from eclipse, it marks every step ...
0
votes
1
answer
1k
views
Unable to set breakpoints in my Eclipse JUnit tests
I’m using the following version of Eclipse/STS:
Version: 3.7.0.RELEASE
Build Id: 201506290652
Platform: Eclipse Mars (4.5.0)
In my editor, when I double click on a line number to create a breakpoint, ...
0
votes
1
answer
2k
views
Eclipse - "Keep JUnit running after a test when debugging"
In Eclipse there is an option under Run/Debug configuration Keep JUnit running after a test when debugging.
Googling for that phrase only returns one hit, a bug report at Eclipse (61174), that is no ...
-1
votes
5
answers
1k
views
How to debug a java code with getters and setters?
I was given an empty class and instructed to fill it with instance variables and methods with bodies, which set or get values from the instance variables. Then I am to open another java file where ...
0
votes
1
answer
184
views
debugging changes result Java Eclipse
I'm wondering something about debugging and what it means.
Currently developping a program that watches a directory and when something changes in the directory, it runs all the tests that it can find ...
3
votes
1
answer
2k
views
Eclipse debugger not stopping in JUnit Breakpoints in Java 7
I realize there were a bunch of these questions a few years ago. But those problems were fixed an update to Java 6. But I'm on Java 7.
I'm on a Mac OS X, Java 7, everything is up to date.
Things I'...
1
vote
0
answers
319
views
Java Application Debugging Using Eclipse Scrapbook
I have a Java application with several (10) packages and almost 50 classes. My task is to understand the application (with poor documentation and no test cases). The application seem to have several ...
0
votes
1
answer
2k
views
how to "debug as maven test" in eclipse (sts)
I have written test cases in JUnit and they are executing fine when I use run as - maven test. But although I put debug points and select debug as - maven test, debugging does not work. I use maven-...
2
votes
1
answer
4k
views
Eclipse ClassNotLoadedException while testing array class type object
ERROR:
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array
CAUSE:
Typer[] typeResult;
for( String ...
29
votes
4
answers
75k
views
How to Debug JUnit tests similar to a regular Java program within Eclipse
In eclipse, if I run a Java program in debug mode with no breakpoints, and if the JVM hits a NullPointerException, Eclipse will kindly highlight the offending line of code, and show the local ...