|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.types.UnsupportedType
net.sourceforge.sqlunit.types.BinaryType
public class BinaryType
Models long binary text. This is identical to the ByteArrayType except it reads from a BinaryStream InputStream object returned in the ResultSet. It will digest the output of toString() using MD5. Results for this type can be provided as an MD5 digest string (prefixed by md5:) or as a file name to compare with (when the file name is prefixed with file:).
Constructor Summary | |
---|---|
BinaryType()
|
Method Summary | |
---|---|
protected java.lang.String |
format(java.lang.Object obj)
Converts the Binary data to its String representation. |
protected java.lang.String |
formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
Methods inherited from class net.sourceforge.sqlunit.types.UnsupportedType |
---|
compareTo, equals, getId, getName, getValue, hashCode, parse, setId, setName, setValue, toObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryType()
Method Detail |
---|
protected java.lang.String formatString(java.lang.String obj) throws SQLUnitException
formatString
in class UnsupportedType
obj
- the String to convert.
SQLUnitException
- if there was a problem.protected java.lang.String format(java.lang.Object obj) throws SQLUnitException
format
in class UnsupportedType
obj
- an Object to be converted to the IType interface.
SQLUnitException
- if the formatting failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |