Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b474de41d2
commit
c253255984
|
@ -251,7 +251,7 @@ public class FastDateFormatTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testParseSync() throws ParseException, InterruptedException {
|
||||
public void testParseSync() throws InterruptedException {
|
||||
final FastDateFormat formatter= FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss.SSS Z");
|
||||
|
||||
long sdfTime= measureTime(formatter, new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS Z") {
|
||||
|
@ -274,7 +274,7 @@ public class FastDateFormatTest {
|
|||
final static private int NTHREADS= 10;
|
||||
final static private int NROUNDS= 10000;
|
||||
|
||||
private long measureTime(final Format formatter, final Format parser) throws ParseException, InterruptedException {
|
||||
private long measureTime(final Format formatter, final Format parser) throws InterruptedException {
|
||||
final ExecutorService pool = Executors.newFixedThreadPool(NTHREADS);
|
||||
final AtomicInteger failures= new AtomicInteger(0);
|
||||
final AtomicLong totalElapsed= new AtomicLong(0);
|
||||
|
|
|
@ -179,7 +179,7 @@ public class FastDateParserTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testLocales() throws ParseException {
|
||||
public void testLocales() {
|
||||
|
||||
for(Locale locale : Locale.getAvailableLocales()) {
|
||||
Calendar cal= Calendar.getInstance(NEW_YORK, Locale.US);
|
||||
|
|
Loading…
Reference in New Issue