Blog Archive for September 12, 2019

Test for an Annotation

September 12, 2019

This test will make sure that a spring boot application has @Transactional on all the (non getter/setter) methods in a service. It looks for classes that end in ServiceImpl.java, in a specific package.

package com.company.test.global;

import static org.junit.Assert. …