Solved
Unit testing QueryBuilder and Query
What is the proper way to unit test QueryBuilder and Query? Can I feed in mock data to the AemContext and have QueryBuilder execute against it?
Are there any examples or best practices that can be followed?
What is the proper way to unit test QueryBuilder and Query? Can I feed in mock data to the AemContext and have QueryBuilder execute against it?
Are there any examples or best practices that can be followed?
Do you have the unit test class with these annotations?
@ExtendWith({ AemContextExtension.class, MockitoExtension.class })
@MockitoSettings(strictness = Strictness.LENIENT)
class UnitTest {
}
The same code works for me.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.