Skip to content

Commit

Permalink
Better test class name
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 18, 2023
1 parent 5e9052a commit 89cdaee
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
*
* @param <T> type to test
*/
public abstract class DateConverterTestBase<T> extends TestCase {
public abstract class AbstractDateConverterTest<T> extends TestCase {

/**
* Constructs a new test case.
*
* @param name Name of the test
*/
public DateConverterTestBase(final String name) {
public AbstractDateConverterTest(final String name) {
super(name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
* Abstract base for &lt;Number&gt;Converter classes.
* @param <T> Number type.
*/
public abstract class NumberConverterTestBase<T extends Number> extends TestCase {
public abstract class AbstractNumberConverterTest<T extends Number> extends TestCase {

/** Test Number values */
protected Number[] numbers = new Number[4];

public NumberConverterTestBase(final String name) {
public AbstractNumberConverterTest(final String name) {
super(name);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the DoubleConverter class.
*/
public class BigDecimalConverterTestCase extends NumberConverterTestBase<BigDecimal> {
public class BigDecimalConverterTestCase extends AbstractNumberConverterTest<BigDecimal> {

/**
* A class derived from {@code BigDecimal} used for testing whether derived number classes are handled correctly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the BigInteger class.
*/
public class BigIntegerConverterTestCase extends NumberConverterTestBase<BigInteger> {
public class BigIntegerConverterTestCase extends AbstractNumberConverterTest<BigInteger> {

public static TestSuite suite() {
return new TestSuite(BigIntegerConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the ByteConverter class.
*/
public class ByteConverterTestCase extends NumberConverterTestBase<Byte> {
public class ByteConverterTestCase extends AbstractNumberConverterTest<Byte> {

public static TestSuite suite() {
return new TestSuite(ByteConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Test Case for the CalendarConverter class.
*/
public class CalendarConverterTestCase extends DateConverterTestBase<Calendar> {
public class CalendarConverterTestCase extends AbstractDateConverterTest<Calendar> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the DateConverter class.
*/
public class DateConverterTestCase extends DateConverterTestBase<Date> {
public class DateConverterTestCase extends AbstractDateConverterTest<Date> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the DoubleConverter class.
*/
public class DoubleConverterTestCase extends NumberConverterTestBase<Double> {
public class DoubleConverterTestCase extends AbstractNumberConverterTest<Double> {

public static TestSuite suite() {
return new TestSuite(DoubleConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the FloatConverter class.
*/
public class FloatConverterTestCase extends NumberConverterTestBase<Float> {
public class FloatConverterTestCase extends AbstractNumberConverterTest<Float> {

public static TestSuite suite() {
return new TestSuite(FloatConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Test Case for the IntegerConverter class.
*/
public class IntegerConverterTestCase extends NumberConverterTestBase<Integer> {
public class IntegerConverterTestCase extends AbstractNumberConverterTest<Integer> {

public static TestSuite suite() {
return new TestSuite(IntegerConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the LocalDateConverter class.
*/
public class LocalDateConverterTestCase extends DateConverterTestBase<LocalDate> {
public class LocalDateConverterTestCase extends AbstractDateConverterTest<LocalDate> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the LocalDateTimeConverter class.
*/
public class LocalDateTimeConverterTestCase extends DateConverterTestBase<LocalDateTime> {
public class LocalDateTimeConverterTestCase extends AbstractDateConverterTest<LocalDateTime> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the LongConverter class.
*/
public class LongConverterTestCase extends NumberConverterTestBase<Long> {
public class LongConverterTestCase extends AbstractNumberConverterTest<Long> {

public static TestSuite suite() {
return new TestSuite(LongConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the OffsetDateTimeConverter class.
*/
public class OffsetDateTimeConverterTestCase extends DateConverterTestBase<OffsetDateTime> {
public class OffsetDateTimeConverterTestCase extends AbstractDateConverterTest<OffsetDateTime> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Test Case for the ShortConverter class.
*/
public class ShortConverterTestCase extends NumberConverterTestBase<Short> {
public class ShortConverterTestCase extends AbstractNumberConverterTest<Short> {

public static TestSuite suite() {
return new TestSuite(ShortConverterTestCase.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Test Case for the ZonedDateTimeConverter class.
*/
public class ZonedDateTimeConverterTestCase extends DateConverterTestBase<ZonedDateTime> {
public class ZonedDateTimeConverterTestCase extends AbstractDateConverterTest<ZonedDateTime> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
import java.sql.Date;
import java.util.Calendar;

import org.apache.commons.beanutils2.converters.DateConverterTestBase;
import org.apache.commons.beanutils2.converters.AbstractDateConverterTest;
import org.apache.commons.beanutils2.converters.DateTimeConverter;

import junit.framework.TestSuite;

/**
* Test Case for the {@link SqlDateConverter} class.
*/
public class SqlDateConverterTestCase extends DateConverterTestBase<Date> {
public class SqlDateConverterTestCase extends AbstractDateConverterTest<Date> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
import java.util.Calendar;
import java.util.Locale;

import org.apache.commons.beanutils2.converters.DateConverterTestBase;
import org.apache.commons.beanutils2.converters.AbstractDateConverterTest;

import junit.framework.TestSuite;

/**
* Test Case for the {@link SqlTimeConverter} class.
*/
public class SqlTimeConverterTestCase extends DateConverterTestBase<Time> {
public class SqlTimeConverterTestCase extends AbstractDateConverterTest<Time> {

/**
* Create Test Suite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import java.util.Date;
import java.util.Locale;

import org.apache.commons.beanutils2.converters.DateConverterTestBase;
import org.apache.commons.beanutils2.converters.AbstractDateConverterTest;

import junit.framework.TestSuite;

/**
* Test Case for the {@link SqlTimestampConverter} class.
*/
public class SqlTimestampConverterTestCase extends DateConverterTestBase<Timestamp> {
public class SqlTimestampConverterTestCase extends AbstractDateConverterTest<Timestamp> {

/**
* Create Test Suite
Expand Down

0 comments on commit 89cdaee

Please sign in to comment.