TimeStampDissector extends Dissector { public Locale getLocale() { return locale; } @SuppressWarnings("UnusedDeclaration")  TimeStampDissector();  TimeStampDissector(String newDateTimePattern);  TimeStampDissector(String inputType, String newDateTimePattern); TimeStampDissector setLocale(Locale newLocale); Locale getLocale(); @Override boolean initializeFromSettingsParameter(String settings); void setDateTimePattern(String nDateTimePattern); @Override String getInputType(); @Override final void setInputType(String nInputType); @Override List<String> getPossibleOutput(); @Override EnumSet<Casts> prepareForDissect(final String inputname, final String outputname); @SuppressWarnings("ConstantConditions") @Override void prepareForRun(); @Override void dissect(final Parsable<?> parsable, final String inputname); static final String DEFAULT_APACHE_DATE_TIME_PATTERN; }
@Test public void ensureDefaultLocaleFollowsISOWeekFields() { WeekFields localeWeekFields = WeekFields.of(new TimeStampDissector().getLocale()); WeekFields isoWeekFields = WeekFields.ISO; assertEquals(localeWeekFields.getFirstDayOfWeek(), isoWeekFields.getFirstDayOfWeek()); assertEquals(localeWeekFields.getMinimalDaysInFirstWeek(), isoWeekFields.getMinimalDaysInFirstWeek()); }