Is your feature request related to a problem? Please describe.
Integration test and unit test are different, for more distingush of them, we can change the integration test's class name.
An integration test extends the class AbstractIntegrationTest
.
For example,
public class AdminServiceTest extends AbstractIntegrationTest {
AdminServiceTest is an integration test, we can change its name to AdminServiceIntegrationTest.
Describe the solution you'd like
- normailize all integration test's class name with suffix IntegrationTest.
- add some class name verify in AbstractIntegrationTest's constructor
public AbstractIntegrationTest() {
String className = this.getClass().getName();
// do some verify
if (!className.endsWith("IntegrationTest")) {
}
}
1条答案
按热度按时间kxkpmulp1#
Sounds a good idea :-)