apollo test: normailize all integration test's class name

j2cgzkjk  于 2022-10-21  发布在  其他
关注(0)|答案(1)|浏览(142)

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

  1. normailize all integration test's class name with suffix IntegrationTest.
  2. add some class name verify in AbstractIntegrationTest's constructor
public AbstractIntegrationTest() {
    String className = this.getClass().getName();
    // do some verify
    if (!className.endsWith("IntegrationTest")) {

    }
  }

相关问题