Package org.dbunit.dataset.datatype
Class FloatDataTypeTest
java.lang.Object
org.dbunit.dataset.datatype.AbstractDataTypeTest
org.dbunit.dataset.datatype.FloatDataTypeTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
public class FloatDataTypeTest
extends AbstractDataTypeTest
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidAssert calls ResultSet.getFloat(columnIndex) before ResultSet.wasNull().voidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
FloatDataTypeTest
public FloatDataTypeTest()
-
-
Method Details
-
testToString_withDataType_returnsExpectedString
- Specified by:
testToString_withDataType_returnsExpectedStringin classAbstractDataTypeTest- Throws:
Exception
-
testGetTypeClass_returnsExpectedClass
- Specified by:
testGetTypeClass_returnsExpectedClassin classAbstractDataTypeTest- Throws:
Exception
-
testIsNumber_returnsExpectedBoolean
- Specified by:
testIsNumber_returnsExpectedBooleanin classAbstractDataTypeTest- Throws:
Exception
-
testIsDateTime_returnsExpectedBoolean
- Specified by:
testIsDateTime_returnsExpectedBooleanin classAbstractDataTypeTest- Throws:
Exception
-
testTypeCast_withCompatibleInput_returnsExpectedValue
- Specified by:
testTypeCast_withCompatibleInput_returnsExpectedValuein classAbstractDataTypeTest- Throws:
Exception
-
testTypeCastNone_withNullInput_returnsNull
- Specified by:
testTypeCastNone_withNullInput_returnsNullin classAbstractDataTypeTest- Throws:
Exception
-
testTypeCastInvalid_withIncompatibleInput_throwsTypeCastException
@Test public void testTypeCastInvalid_withIncompatibleInput_throwsTypeCastException() throws Exception- Specified by:
testTypeCastInvalid_withIncompatibleInput_throwsTypeCastExceptionin classAbstractDataTypeTest- Throws:
Exception
-
testCompareEquals_withEqualValues_returnsZero
- Specified by:
testCompareEquals_withEqualValues_returnsZeroin classAbstractDataTypeTest- Throws:
Exception
-
testCompareInvalid_withInvalidInput_throwsTypeCastException
- Specified by:
testCompareInvalid_withInvalidInput_throwsTypeCastExceptionin classAbstractDataTypeTest- Throws:
Exception
-
testCompareDifferent_withDifferentValues_returnsNonZero
- Specified by:
testCompareDifferent_withDifferentValues_returnsNonZeroin classAbstractDataTypeTest- Throws:
Exception
-
testSqlType_returnsExpectedSqlType
- Specified by:
testSqlType_returnsExpectedSqlTypein classAbstractDataTypeTest- Throws:
Exception
-
testForObject_withValidInput_returnsDataType
- Specified by:
testForObject_withValidInput_returnsDataTypein classAbstractDataTypeTest- Throws:
Exception
-
testAsString_withValidInput_returnsStringRepresentation
- Specified by:
testAsString_withValidInput_returnsStringRepresentationin classAbstractDataTypeTest- Throws:
Exception
-
testGetSqlValue_withValidStatement_returnsExpectedValue
- Specified by:
testGetSqlValue_withValidStatement_returnsExpectedValuein classAbstractDataTypeTest- Throws:
Exception
-
testGetSqlValueCallOrder_afterGetSqlValue_callsGetFloatBeforeWasNull
@Test public void testGetSqlValueCallOrder_afterGetSqlValue_callsGetFloatBeforeWasNull() throws TypeCastException, SQLExceptionAssert calls ResultSet.getFloat(columnIndex) before ResultSet.wasNull().- Throws:
TypeCastExceptionSQLException
-