コード例 #1
0
 @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);
 }
コード例 #2
0
 @Test(expected = PlatoException.class)
 public void testMalformedPuid() throws PlatoException {
   FormatInfo formatInfo = new FormatInfo();
   formatInfo.setPuid("G:\\tmp\\DSC_3161.NEF");
   registry.getAvailableActions(formatInfo);
 }
コード例 #3
0
 @Test(expected = PlatoException.class)
 public void testRetrieveWithNullFormatInfo() throws PlatoException {
   registry.getAvailableActions(null);
 }