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:
Sebastian Bazley 2012-09-07 00:49:38 +00:00
parent b474de41d2
commit c253255984
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);