public class HandleTMasterLocationTest
extends java.lang.Object
We make a SimpleTMasterLocationPublisher, which would send two TMasterLocationRefreshMessage, (twice each) after connected and registered with MetricsManagerServer, and then we check: 1. Whether onMessage(...) is invoked 4 times, with correct arguments.
2. Whether onMessage(...) is invoked 4 times, with correct order.
3. Whether eventually the TMasterLocation in SingletonRegistry should be the latest one.
Constructor and Description |
---|
HandleTMasterLocationTest() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
void |
testHandleTMasterLocation() |