I just found out that classes annotated with @OnApplicationStart run when I run jUnit tests (via IntelliJ).
Can I disable this? I have some logic that is only relevant on real application startup, but not in tests.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can check test mode in your doJob method for that