}
@Test
- public void register() throws Exception {
+ public void register() {
Assert.assertNotNull(registration);
}
@Test
- public void registerTwice() throws Exception {
+ public void registerTwice() {
MastershipChangeRegistration registration2;
registration2 = manager.register(secondService);
Assert.assertNotNull(registration);
}
@Test
- public void reconciliationFrameworkRegistration() throws Exception {
+ public void reconciliationFrameworkRegistration() {
Assert.assertNotNull(registrationRF);
}
}
@Test
- public void becomeMaster() throws Exception {
+ public void becomeMaster() {
manager.becomeMaster(deviceInfo);
Mockito.verify(service).onBecomeOwner(deviceInfo);
manager.becomeSlaveOrDisconnect(deviceInfo);
}
@Test
- public void becomeMasterBeforeDS() throws Exception {
+ public void becomeMasterBeforeDS() {
manager.becomeMasterBeforeSubmittedDS(deviceInfo);
Mockito.verify(event).onDevicePrepared(deviceInfo);
}
}
@Test
- public void evokeEventAfterRegistration() throws Exception {
+ public void evokeEventAfterRegistration() {
List<DeviceInfo> deviceInfos = new ArrayList<>();
deviceInfos.add(deviceInfo);
manager.setMasterChecker(masterChecker);