Declutter: Tests don't need Javadoc @since tags

This commit is contained in:
Gary Gregory 2024-01-20 10:35:42 -05:00
parent cc72f8cfaa
commit 0749749a11
14 changed files with 0 additions and 39 deletions

View File

@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test;
/**
* Tests {@link StringUtils}'s valueOf() methods.
*
* @since 3.9
*/
public class StringUtilsValueOfTest extends AbstractLangTest {

View File

@ -48,7 +48,6 @@ import org.junit.jupiter.api.Test;
*
* @see <a href="https://issues.apache.org/jira/browse/LANG-762">[LANG-762] Handle or document ReflectionToStringBuilder
* and ToStringBuilder for collections that are not thread safe</a>
* @since 3.1
*/
public class ReflectionToStringBuilderConcurrencyTest extends AbstractLangTest {

View File

@ -33,7 +33,6 @@ import org.junit.jupiter.api.Test;
*
* @see <a href="https://issues.apache.org/jira/browse/LANG-762">[LANG-762] Handle or document ReflectionToStringBuilder
* and ToStringBuilder for collections that are not thread safe</a>
* @since 3.1
*/
public class ReflectionToStringBuilderMutateInspectConcurrencyTest extends AbstractLangTest {

View File

@ -44,7 +44,6 @@ import org.junit.jupiter.api.Test;
*
* @see <a href="https://issues.apache.org/jira/browse/LANG-762">[LANG-762] Handle or document ReflectionToStringBuilder
* and ToStringBuilder for collections that are not thread safe</a>
* @since 3.1
*/
public class ToStringStyleConcurrencyTest extends AbstractLangTest {

View File

@ -41,7 +41,6 @@ import org.easymock.EasyMock;
import org.junit.jupiter.api.Test;
/**
* @since 3.0
*/
public class EventListenerSupportTest extends AbstractLangTest {

View File

@ -40,7 +40,6 @@ import org.apache.commons.lang3.AbstractLangTest;
import org.junit.jupiter.api.Test;
/**
* @since 3.0
*/
public class EventUtilsTest extends AbstractLangTest {
public static class EventCounter {

View File

@ -47,7 +47,6 @@ import org.junit.jupiter.api.Test;
/**
* Tests {@link org.apache.commons.lang3.exception.ExceptionUtils}.
*
* @since 1.0
*/
public class ExceptionUtilsTest extends AbstractLangTest {

View File

@ -29,7 +29,6 @@ import org.junit.jupiter.api.Test;
/**
* JUnit tests.
*
* @since 2.2
* @see MutableBoolean
*/
public class MutableBooleanTest extends AbstractLangTest {

View File

@ -40,7 +40,6 @@ import org.junit.jupiter.api.Test;
/**
* Test case for {@link ExtendedMessageFormat}.
*
* @since 2.4
*/
@Deprecated
public class ExtendedMessageFormatTest extends AbstractLangTest {

View File

@ -39,7 +39,6 @@ import org.junit.jupiter.api.Test;
* A month with 29 or 30 days will be rounded up from the 16th
* A month with 31 days will be rounded up from the 17th
*
* @since 3.0
*/
public class DateUtilsRoundingTest extends AbstractLangTest {
@ -68,7 +67,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* @param roundedDownDate the result if <strong>lastRoundDownDate</strong> was rounded with <strong>calendarField</strong>
* @param lastRoundDownDate rounding this value with <strong>calendarField</strong> will result in <strong>roundedDownDate</strong>
* @param calendarField a Calendar.field value
* @since 3.0
*/
protected void baseRoundTest(final Date roundedUpDate, final Date roundedDownDate, final Date lastRoundDownDate, final int calendarField) {
final Date firstRoundUpDate = DateUtils.addMilliseconds(lastRoundDownDate, 1);
@ -119,7 +117,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* @param truncatedDate expected Date when <strong>lastTruncateDate</strong> is truncated with <strong>calendarField</strong>
* @param lastTruncateDate the last possible Date which will truncate to <strong>truncatedDate</strong> with <strong>calendarField</strong>
* @param calendarField a Calendar.field value
* @since 3.0
*/
protected void baseTruncateTest(final Date truncatedDate, final Date lastTruncateDate, final int calendarField) {
final Date nextTruncateDate = DateUtils.addMilliseconds(lastTruncateDate, 1);
@ -162,7 +159,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* @param minDate the lower bound
* @param maxDate the upper bound
* @param calendarField a Calendar.field value
* @since 3.0
*/
protected void roundToJanuaryFirst(final Date minDate, final Date maxDate, final int calendarField) {
assertEquals(januaryOneDate, DateUtils.round(januaryOneDate, calendarField), "Rounding "+ fdf.format(januaryOneDate) +" as Date with CalendarField-value "+ calendarField +" must return itself");
@ -216,7 +212,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundAmPm() throws Exception {
@ -249,7 +244,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundDate() throws Exception {
@ -277,7 +271,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundDayOfMonth() throws Exception {
@ -305,7 +298,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundHour() throws Exception {
@ -333,7 +325,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundHourOfDay() throws Exception {
@ -361,7 +352,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundMilliSecond() throws Exception {
@ -387,7 +377,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundMinute() throws Exception {
@ -415,7 +404,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundMonth() throws Exception {
@ -460,7 +448,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundSecond() throws Exception {
@ -488,7 +475,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes rounding to January 1
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundSemiMonth() throws Exception {
@ -555,7 +541,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Tests DateUtils.round()-method with Calendar.Year
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testRoundYear() throws Exception {
@ -571,7 +556,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes truncating the extremes of both AM and PM of one day
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateAmPm() throws Exception {
@ -590,7 +574,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.DATE
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateDate() throws Exception {
@ -603,7 +586,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.DAY_OF_MONTH
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateDayOfMonth() throws Exception {
@ -616,7 +598,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.HOUR
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateHour() throws Exception {
@ -629,7 +610,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.HOUR_OF_DAY
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateHourOfDay() throws Exception {
@ -641,7 +621,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
/**
* Test DateUtils.truncate()-method with Calendar.SECOND
*
* @since 3.0
*/
@Test
public void testTruncateMilliSecond() {
@ -653,7 +632,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.MINUTE
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateMinute() throws Exception {
@ -666,7 +644,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.MONTH
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateMonth() throws Exception {
@ -680,7 +657,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.SECOND
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateSecond() throws Exception {
@ -694,7 +670,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Includes truncating months with 28, 29, 30 and 31 days, each with first and second half
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateSemiMonth() throws Exception {
@ -747,7 +722,6 @@ public class DateUtilsRoundingTest extends AbstractLangTest {
* Test DateUtils.truncate()-method with Calendar.YEAR
*
* @throws Exception so we don't have to catch it
* @since 3.0
*/
@Test
public void testTruncateYear() throws Exception {

View File

@ -46,7 +46,6 @@ import org.junitpioneer.jupiter.DefaultTimeZone;
/**
* Unit tests {@link org.apache.commons.lang3.time.FastDateFormat}.
*
* @since 2.0
*/
public class FastDateFormatTest extends AbstractLangTest {
private static final int NTHREADS = 10;

View File

@ -22,7 +22,6 @@ import java.util.TimeZone;
/**
* Unit tests for the print methods of FastDateFormat
*
* @since 3.2
*/
public class FastDateFormat_PrinterTest extends FastDatePrinterTest {

View File

@ -50,7 +50,6 @@ import org.junit.jupiter.params.provider.MethodSource;
/**
* Unit tests {@link org.apache.commons.lang3.time.FastDateParser}.
*
* @since 3.2
*/
public class FastDateParserTest extends AbstractLangTest {

View File

@ -39,7 +39,6 @@ import org.junitpioneer.jupiter.DefaultTimeZone;
/**
* Unit tests {@link org.apache.commons.lang3.time.FastDatePrinter}.
*
* @since 3.0
*/
public class FastDatePrinterTest extends AbstractLangTest {