I am working on a project with several modules. We are writing junit test cases for an application, and we are using the exception below.
The java.lang.RuntimeException test started: java.lang.ClassNotFoundException:
The following is the project dependency
ο Library project 1
ο Library project 2 - depends on library project 1
ο Library project 3- depends on library project 1
ο Main launch project - depends on library 2 project and library 3 project
From the library 1 project, we access the classes in the library 2 project using the factory template to get the object. When we write test cases for library project 1. Could you tell us how we can get an instance of classes from library project 2 when we run the unit test class for library 1?
source share