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