Fix test method names.

This commit is contained in:
Gary Gregory 2020-12-23 20:05:48 -05:00
parent 157ba27be7
commit b5bb3e6d3a
1 changed files with 38 additions and 40 deletions

View File

@ -1435,7 +1435,7 @@ public boolean test(final String object1, final String object2) throws IOExcepti
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableBooleanSupplier_Object_Throwable() { public void testThrows_FailableBooleanSupplier_Throwable() {
new FailableBooleanSupplier<Throwable>() { new FailableBooleanSupplier<Throwable>() {
@Override @Override
@ -1450,7 +1450,7 @@ public boolean getAsBoolean() throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableBooleanSupplier_String_IOException() { public void testThrows_FailableBooleanSupplier_IOException() {
new FailableBooleanSupplier<IOException>() { new FailableBooleanSupplier<IOException>() {
@Override @Override
@ -1460,8 +1460,6 @@ public boolean getAsBoolean() throws IOException {
}; };
} }
///////////////////////////////////////////////
/** /**
* Tests that our failable interface is properly defined to throw any exception. using the top level generic types * Tests that our failable interface is properly defined to throw any exception. using the top level generic types
* Object and Throwable. * Object and Throwable.
@ -1529,7 +1527,7 @@ public void accept(final String object) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleBinaryOperator_Object_Throwable() { public void testThrows_FailableDoubleBinaryOperator_Throwable() {
new FailableDoubleBinaryOperator<Throwable>() { new FailableDoubleBinaryOperator<Throwable>() {
@Override @Override
@ -1544,7 +1542,7 @@ public double applyAsDouble(final double left, final double right) throws Throwa
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleBinaryOperator_String_IOException() { public void testThrows_FailableDoubleBinaryOperator_IOException() {
new FailableDoubleBinaryOperator<IOException>() { new FailableDoubleBinaryOperator<IOException>() {
@Override @Override
@ -1559,7 +1557,7 @@ public double applyAsDouble(final double left, final double right) throws IOExce
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleConsumer_Object_Throwable() { public void testThrows_FailableDoubleConsumer_Throwable() {
new FailableDoubleConsumer<Throwable>() { new FailableDoubleConsumer<Throwable>() {
@Override @Override
@ -1575,7 +1573,7 @@ public void accept(final double value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleConsumer_String_IOException() { public void testThrows_FailableDoubleConsumer_IOException() {
new FailableDoubleConsumer<IOException>() { new FailableDoubleConsumer<IOException>() {
@Override @Override
@ -1590,7 +1588,7 @@ public void accept(final double value) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleFunction_Object_Throwable() { public void testThrows_FailableDoubleFunction_Throwable() {
new FailableDoubleFunction<Object, Throwable>() { new FailableDoubleFunction<Object, Throwable>() {
@Override @Override
@ -1605,7 +1603,7 @@ public Object apply(final double input) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleFunction_String_IOException() { public void testThrows_FailableDoubleFunction_IOException() {
new FailableDoubleFunction<String, IOException>() { new FailableDoubleFunction<String, IOException>() {
@Override @Override
@ -1620,7 +1618,7 @@ public String apply(final double input) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleSupplier_Object_Throwable() { public void testThrows_FailableDoubleSupplier_Throwable() {
new FailableDoubleSupplier<Throwable>() { new FailableDoubleSupplier<Throwable>() {
@Override @Override
@ -1635,7 +1633,7 @@ public double getAsDouble() throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleSupplier_String_IOException() { public void testThrows_FailableDoubleSupplier_IOException() {
new FailableDoubleSupplier<IOException>() { new FailableDoubleSupplier<IOException>() {
@Override @Override
@ -1650,7 +1648,7 @@ public double getAsDouble() throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleToIntFunction_Object_Throwable() { public void testThrows_FailableDoubleToIntFunction_Throwable() {
new FailableDoubleToIntFunction<Throwable>() { new FailableDoubleToIntFunction<Throwable>() {
@Override @Override
@ -1665,7 +1663,7 @@ public int applyAsInt(final double value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleToIntFunction_String_IOException() { public void testThrows_FailableDoubleToIntFunction_IOException() {
new FailableDoubleToIntFunction<IOException>() { new FailableDoubleToIntFunction<IOException>() {
@Override @Override
@ -1680,7 +1678,7 @@ public int applyAsInt(final double value) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableDoubleToLongFunction_Object_Throwable() { public void testThrows_FailableDoubleToLongFunction_Throwable() {
new FailableDoubleToLongFunction<Throwable>() { new FailableDoubleToLongFunction<Throwable>() {
@Override @Override
@ -1695,7 +1693,7 @@ public int applyAsLong(final double value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableDoubleToLongFunction_String_IOException() { public void testThrows_FailableDoubleToLongFunction_IOException() {
new FailableDoubleToLongFunction<IOException>() { new FailableDoubleToLongFunction<IOException>() {
@Override @Override
@ -1740,7 +1738,7 @@ public String apply(final String input) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableIntBinaryOperator_Object_Throwable() { public void testThrows_FailableIntBinaryOperator_Throwable() {
new FailableIntBinaryOperator<Throwable>() { new FailableIntBinaryOperator<Throwable>() {
@Override @Override
@ -1755,7 +1753,7 @@ public int applyAsInt(final int left, final int right) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableIntBinaryOperator_String_IOException() { public void testThrows_FailableIntBinaryOperator_IOException() {
new FailableIntBinaryOperator<IOException>() { new FailableIntBinaryOperator<IOException>() {
@Override @Override
@ -1770,7 +1768,7 @@ public int applyAsInt(final int left, final int right) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableIntConsumer_Object_Throwable() { public void testThrows_FailableIntConsumer_Throwable() {
new FailableIntConsumer<Throwable>() { new FailableIntConsumer<Throwable>() {
@Override @Override
@ -1786,7 +1784,7 @@ public void accept(final int value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableIntConsumer_String_IOException() { public void testThrows_FailableIntConsumer_IOException() {
new FailableIntConsumer<IOException>() { new FailableIntConsumer<IOException>() {
@Override @Override
@ -1831,7 +1829,7 @@ public String apply(final int input) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableIntSupplier_Object_Throwable() { public void testThrows_FailableIntSupplier_Throwable() {
new FailableIntSupplier<Throwable>() { new FailableIntSupplier<Throwable>() {
@Override @Override
@ -1846,7 +1844,7 @@ public int getAsInt() throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableIntSupplier_String_IOException() { public void testThrows_FailableIntSupplier_IOException() {
new FailableIntSupplier<IOException>() { new FailableIntSupplier<IOException>() {
@Override @Override
@ -1861,7 +1859,7 @@ public int getAsInt() throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableIntToDoubleFunction_Object_Throwable() { public void testThrows_FailableIntToDoubleFunction_Throwable() {
new FailableIntToDoubleFunction<Throwable>() { new FailableIntToDoubleFunction<Throwable>() {
@Override @Override
@ -1876,7 +1874,7 @@ public double applyAsDouble(final int value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableIntToDoubleFunction_String_IOException() { public void testThrows_FailableIntToDoubleFunction_IOException() {
new FailableIntToDoubleFunction<IOException>() { new FailableIntToDoubleFunction<IOException>() {
@Override @Override
@ -1891,7 +1889,7 @@ public double applyAsDouble(final int value) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableIntToLongFunction_Object_Throwable() { public void testThrows_FailableIntToLongFunction_Throwable() {
new FailableIntToLongFunction<Throwable>() { new FailableIntToLongFunction<Throwable>() {
@Override @Override
@ -1906,7 +1904,7 @@ public long applyAsLong(final int value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableIntToLongFunction_String_IOException() { public void testThrows_FailableIntToLongFunction_IOException() {
new FailableIntToLongFunction<IOException>() { new FailableIntToLongFunction<IOException>() {
@Override @Override
@ -1921,7 +1919,7 @@ public long applyAsLong(final int value) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongBinaryOperator_Object_Throwable() { public void testThrows_FailableLongBinaryOperator_Throwable() {
new FailableLongBinaryOperator<Throwable>() { new FailableLongBinaryOperator<Throwable>() {
@Override @Override
@ -1936,7 +1934,7 @@ public long applyAsLong(final long left, final long right) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongBinaryOperator_String_IOException() { public void testThrows_FailableLongBinaryOperator_IOException() {
new FailableLongBinaryOperator<IOException>() { new FailableLongBinaryOperator<IOException>() {
@Override @Override
@ -1951,7 +1949,7 @@ public long applyAsLong(final long left, final long right) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongConsumer_Object_Throwable() { public void testThrows_FailableLongConsumer_Throwable() {
new FailableLongConsumer<Throwable>() { new FailableLongConsumer<Throwable>() {
@Override @Override
@ -1967,7 +1965,7 @@ public void accept(final long object) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongConsumer_String_IOException() { public void testThrows_FailableLongConsumer_IOException() {
new FailableLongConsumer<IOException>() { new FailableLongConsumer<IOException>() {
@Override @Override
@ -1983,7 +1981,7 @@ public void accept(final long object) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongFunction_Object_Throwable() { public void testThrows_FailableLongFunction_Throwable() {
new FailableLongFunction<Object, Throwable>() { new FailableLongFunction<Object, Throwable>() {
@Override @Override
@ -1998,7 +1996,7 @@ public Object apply(final long input) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongFunction_String_IOException() { public void testThrows_FailableLongFunction_IOException() {
new FailableLongFunction<String, IOException>() { new FailableLongFunction<String, IOException>() {
@Override @Override
@ -2013,7 +2011,7 @@ public String apply(final long input) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongSupplier_Object_Throwable() { public void testThrows_FailableLongSupplier_Throwable() {
new FailableLongSupplier<Throwable>() { new FailableLongSupplier<Throwable>() {
@Override @Override
@ -2028,7 +2026,7 @@ public long getAsLong() throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongSupplier_String_IOException() { public void testThrows_FailableLongSupplier_IOException() {
new FailableLongSupplier<IOException>() { new FailableLongSupplier<IOException>() {
@Override @Override
@ -2043,7 +2041,7 @@ public long getAsLong() throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongToDoubleFunction_Object_Throwable() { public void testThrows_FailableLongToDoubleFunction_Throwable() {
new FailableLongToDoubleFunction<Throwable>() { new FailableLongToDoubleFunction<Throwable>() {
@Override @Override
@ -2058,7 +2056,7 @@ public double applyAsDouble(final long value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongToDoubleFunction_String_IOException() { public void testThrows_FailableLongToDoubleFunction_IOException() {
new FailableLongToDoubleFunction<IOException>() { new FailableLongToDoubleFunction<IOException>() {
@Override @Override
@ -2073,7 +2071,7 @@ public double applyAsDouble(final long value) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableLongToIntFunction_Object_Throwable() { public void testThrows_FailableLongToIntFunction_Throwable() {
new FailableLongToIntFunction<Throwable>() { new FailableLongToIntFunction<Throwable>() {
@Override @Override
@ -2088,7 +2086,7 @@ public int applyAsInt(final long value) throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableLongToIntFunction_String_IOException() { public void testThrows_FailableLongToIntFunction_IOException() {
new FailableLongToIntFunction<IOException>() { new FailableLongToIntFunction<IOException>() {
@Override @Override
@ -2226,7 +2224,7 @@ public boolean test(final String object) throws IOException {
* Object and Throwable. * Object and Throwable.
*/ */
@Test @Test
public void testThrows_FailableRunnable_Object_Throwable() { public void testThrows_FailableRunnable_Throwable() {
new FailableRunnable<Throwable>() { new FailableRunnable<Throwable>() {
@Override @Override
@ -2242,7 +2240,7 @@ public void run() throws Throwable {
* generic test types. * generic test types.
*/ */
@Test @Test
public void testThrows_FailableRunnable_String_IOException() { public void testThrows_FailableRunnable_IOException() {
new FailableRunnable<IOException>() { new FailableRunnable<IOException>() {
@Override @Override