@Test public void testCanHandle() { installation.setType(InstallationType.BIOCASE_INSTALLATION); assertThat(synchroniser.canHandle(installation)).isFalse(); installation.setType(InstallationType.TAPIR_INSTALLATION); assertThat(synchroniser.canHandle(installation)).isTrue(); }
@Before public void setup() { synchroniser = new TapirMetadataSynchroniser(client); installation = new Installation(); installation.setType(InstallationType.TAPIR_INSTALLATION); Endpoint endpoint = new Endpoint(); endpoint.setUrl(URI.create("http://localhost/nmr")); installation.addEndpoint(endpoint); }