iotdb
iotdb copied to clipboard
[IOTDB-5021] Using Junit parameterized test to optimize schema IT framework
Description
In order to make the integrate tests cover Schema_File mode and Memory mode, we originally needed to create two classes for each IT, such as IoTDBMetadataFetchIT and IoTDBMetadataFetchSchemaFileIT, which would result in a large number of classes.
This ISSUE introduces a JUnit parametric test approach. An AbstractSchemaIT abstract class is created for all schema test, and its subclasses will automatically run tests in both schema engine modes.
reference: https://blog.csdn.net/w605283073/article/details/80051229 https://stackoverflow.com/questions/27745691/how-to-combine-runwith-with-runwithparameterized-class