-
Notifications
You must be signed in to change notification settings - Fork 198
Testing Guidelines
Hongliang Xu edited this page Jul 29, 2018
·
2 revisions
Tests should have a class name that ends with Test (i.e. ControllerTest) with test methods that start with test (i.e. testManager). Use TestNG annotations (e.g. @Test, @BeforeClass, @BeforeMethod) to indicate test and setUp/tearDown methods.
Use utilities to spawn test fixtures whenever necessary. For example, use ZkStarter and KafkaStarterUtils to start ZooKeeper and Kafka. Put common utilities in uReplicator-Common module for other modules to use. For example, uReplicator-Manager and uReplicator-Controller both use ManagerRequestURLBuilder to build requests.