To debug the module, follow this process:
Start Modelio in the Eclipse debugger
Run Modelio in debug mode

Open the Modelio test project
-
Open the test project or create a new test project
-
Deploy the JUnit module if it is not already installed
Set up breakpoints
Add a breakpoint in your JUnit source code. For example, put the breakpoint on the createTestCase
method in the TestCaseCreator class

Eclipse breakpoints
-
Create a Class and create a test case on it
-
When the breakpoint is hit, Eclipse switches to debug perspective. If it is the first time, the "Confirm Perspective Switch" dialog box appears. Click on "Yes" to switch to Debug perspective.
Add a source lookup path
When Eclipse runs the configuration, it launches an application from a different working directory. So, the junit sources path must be added to the source lookup path:
-
Click on the "Edit Source Lookup Path…" button. (1)
-
Click on the "Add…" button. (2)
-
Select "Java Project" (3) and click on "OK"
-
Select the "junit" project (4) and click on "OK"
-
Close the "Edit the source lookup path" dialog box by clicking on the "OK" button.

Code fixing >> |