@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())));
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 3
0
 /** Forces the use of English locales for this test. */
 @Before
 public void setUp() {
   Locale.setDefault(Locale.US);
 }