You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/09/07 02:49:38 UTC
svn commit: r1381831 - in
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time:
FastDateFormatTest.java FastDateParserTest.java
Author: sebb
Date: Fri Sep 7 00:49:38 2012
New Revision: 1381831
URL: http://svn.apache.org/viewvc?rev=1381831&view=rev
Log:
Exceptions not thrown
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java?rev=1381831&r1=1381830&r2=1381831&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java Fri Sep 7 00:49:38 2012
@@ -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);
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java?rev=1381831&r1=1381830&r2=1381831&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java Fri Sep 7 00:49:38 2012
@@ -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);