- @Test
- void testReRegister() throws Exception {
- // Wait foir register types and producer
- waitForRegistration();
-
- // Clear the registration, should trigger a re-register
- icsSimulatorController.testResults.reset();
- producerRegistrationTask.supervisionTask().block();
- await().untilAsserted(() -> assertThat(icsSimulatorController.testResults.registrationInfo).isNotNull());
- assertThat(icsSimulatorController.testResults.registrationInfo.supportedTypeIds).hasSize(this.types.size());
-
- // Just clear the registerred types, should trigger a re-register
- icsSimulatorController.testResults.types.clear();
- await().untilAsserted(() -> assertThat(icsSimulatorController.testResults.registrationInfo.supportedTypeIds)
- .hasSize(this.types.size()));
- }
-