コード例 #1
0
 @Test
 public void testProductFileFilter() {
   final SnapFileFilter snapFileFilter = plugIn.getProductFileFilter();
   assertNotNull(snapFileFilter);
   assertArrayEquals(plugIn.getDefaultFileExtensions(), snapFileFilter.getExtensions());
   assertEquals(plugIn.getFormatNames()[0], snapFileFilter.getFormatName());
   assertEquals(
       true, snapFileFilter.getDescription().contains(plugIn.getDescription(Locale.getDefault())));
 }
コード例 #2
0
 @Test
 public void testFileExtensions() {
   final String[] fileExtensions = plugIn.getDefaultFileExtensions();
   assertNotNull(fileExtensions);
   final List<String> extensionList = Arrays.asList(fileExtensions);
   assertEquals(4, extensionList.size());
   assertEquals(".xml", extensionList.get(0));
   assertEquals(".XML", extensionList.get(1));
   assertEquals(".tgz", extensionList.get(2));
   assertEquals(".TGZ", extensionList.get(3));
 }