@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 createLocaleTest() {
   Locale english = new Locale(1, "English");
   assertEquals("Compare idLocale", 1, (int) english.getId());
   assertEquals("Compare nameLocale", "English", english.getName());
 }
Пример #3
0
 /** Forces the use of English locales for this test. */
 @Before
 public void setUp() {
   Locale.setDefault(Locale.US);
 }