@Test public void testRetrieveActionForTemporalPuid() throws PlatoException { FormatInfo formatInfo = new FormatInfo(); formatInfo.setPuid("x-fmt/35"); List<IServiceInfo> services = registry.getAvailableActions(formatInfo); assertNotNull(services); assertTrue(services.size() > 0); }
@Test(expected = PlatoException.class) public void testMalformedPuid() throws PlatoException { FormatInfo formatInfo = new FormatInfo(); formatInfo.setPuid("G:\\tmp\\DSC_3161.NEF"); registry.getAvailableActions(formatInfo); }