|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SQLUnitException | |
---|---|
net.sourceforge.sqlunit | Classes for the SQLUnit core package. |
net.sourceforge.sqlunit.beans | Beans for the SQLUnit handlers. |
net.sourceforge.sqlunit.matchers | Matcher plug-ins for SQLUnit. |
net.sourceforge.sqlunit.types | Implementations of various datatypes. |
net.sourceforge.sqlunit.utils | Utility classes for SQLUnit. |
Uses of SQLUnitException in net.sourceforge.sqlunit |
---|
Methods in net.sourceforge.sqlunit that throw SQLUnitException | |
---|---|
boolean |
MatchPattern.applyMatcher(java.lang.String source,
java.lang.String target)
Returns true or false as a result of applying the matching algorithm specified by the IMatcher object. |
static void |
Assertions.assertIsTrue(java.lang.String failureMessage,
BatchDatabaseResult expR,
BatchDatabaseResult gotR,
java.lang.String condition)
Invokes a named assertion (or a comma-separated list of assertions) and applies it to the supplied BatchDatabaseResult objects. |
static void |
Assertions.assertIsTrue(java.lang.String failureMessage,
DatabaseResult expR,
DatabaseResult gotR,
java.util.List matchPatterns,
java.lang.String condition)
Invokes a named assertion (or a comma-separated list of assertions) and applies it to the supplied DatabaseResult objects. |
boolean |
MatchPattern.canApply(int resultSetId,
int rowId,
int colId)
Returns true if this MatchPattern object can be applied to the DatabaseResult element specified by the [resultSetId, rowId, colId] tuple. |
static java.sql.Connection |
ConnectionRegistry.getConnection(java.lang.String id)
Returns the Connection object associated with a given connection-id. |
static IType |
TypeFactory.getInstance(int typeId)
Given an SQL Type Id, instantiates and returns a partially populated IType object of the specified type. |
static IType |
TypeFactory.getInstance(java.lang.String name)
Given an XML type name, instantiates and returns a partially populated IType object of the specified type. |
boolean |
IMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
The isEqual method returns a true or false depending on whether the Matcher object determines that the source String matches the target String. |
static boolean |
MatchPattern.matchPattern(java.lang.String p,
int s)
Matches a pattern filter against the supplied String s. |
static java.lang.String |
SymbolTable.replaceVariables(java.lang.String text)
Replaces all variables in a string from the symbol table. |
void |
SQLUnit.runTest()
Called by Test.run() or Test.runBare() from the SQLUnit task. |
static void |
SymbolTable.setSymbols(DatabaseResult target,
DatabaseResult source,
java.lang.String namespace)
Updates the symbol table with variables from a target resultset that are populated by a SQL or stored procedure call. |
void |
SQLUnit.testWrapper()
The main testing class which dynamically processes the input XML file. |
java.lang.Object |
IType.toObject(java.lang.String str)
Parses a String representation of an IType to the corresponding object value. |
java.lang.String |
IType.toString(java.lang.Object obj)
Formats an implementation of the IType interface to its corresponding String value. |
static void |
SymbolTable.update(DatabaseResult target,
DatabaseResult source)
Scans the source DatabaseResult and the symbol table and updates the target DatabaseResult object in place. |
Uses of SQLUnitException in net.sourceforge.sqlunit.beans |
---|
Methods in net.sourceforge.sqlunit.beans that throw SQLUnitException | |
---|---|
int |
OutParam.getSQLType()
Convenience method to return the SQL (numeric) type from the supplied (String XML) type. |
int |
Param.getSQLType()
Convenience method to return the SQL (numeric) type from the supplied (String XML) type. |
Constructors in net.sourceforge.sqlunit.beans that throw SQLUnitException | |
---|---|
ResultSetBean(java.sql.ResultSet rs,
int id)
Constructs and populates a ResultSetBean object from a ResultSet object. |
Uses of SQLUnitException in net.sourceforge.sqlunit.matchers |
---|
Methods in net.sourceforge.sqlunit.matchers that throw SQLUnitException | |
---|---|
boolean |
AllOrNothingMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the key "match" in the args Map contains the String "true", else always returns false. |
boolean |
ExpressionMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns the result of the specified expression. |
boolean |
ForgivingNullMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target and the source are equivalent to NULL (either by being empty or by containing the word NULL) or are actually equal to each other |
boolean |
PercentageRangeMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target is withing (+/-) a specified tolerance value of the source. |
boolean |
RangeMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target is withing (+/-) a specified tolerance value of the source. |
boolean |
SignificantDigitsMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target is equal to the source up to a certain number of significant digits. |
boolean |
TypelessMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the String values of the source and target are equal. |
boolean |
TypelessPercentageMatcher.isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target is withing (+/-) a specified percentage tolerance value of the source if the source and target can both be converted to doubles. |
Uses of SQLUnitException in net.sourceforge.sqlunit.types |
---|
Methods in net.sourceforge.sqlunit.types that throw SQLUnitException | |
---|---|
protected java.lang.String |
ArrayType.format(java.lang.Object obj)
Formats an Array object into a String representation of the Array. |
protected java.lang.String |
BigDecimalType.format(java.lang.Object obj)
Formats a BigDecimal type. |
protected java.lang.String |
BinaryType.format(java.lang.Object obj)
Converts the Binary data to its String representation. |
protected java.lang.String |
BlobType.format(java.lang.Object obj)
Formats a BLOB into a String representation of the BLOB. |
protected java.lang.String |
BooleanType.format(java.lang.Object obj)
Formats a Boolean type. |
protected java.lang.String |
ByteArrayType.format(java.lang.Object obj)
Formats a ByteArray into its string representation. |
protected java.lang.String |
ByteType.format(java.lang.Object obj)
Formats a Byte type. |
protected java.lang.String |
ClobType.format(java.lang.Object obj)
Formats a CLOB into a String representation of the BLOB. |
protected java.lang.String |
DateType.format(java.lang.Object obj)
Formats a DATE into its String representation. |
protected java.lang.String |
DoubleType.format(java.lang.Object obj)
Formats a Double type. |
protected java.lang.String |
FloatType.format(java.lang.Object obj)
Formats a Float type. |
protected java.lang.String |
IntegerType.format(java.lang.Object obj)
Formats a Integer type. |
protected java.lang.String |
JavaObjectType.format(java.lang.Object obj)
Formats a JAVA_OBJECT into a String representation of the BLOB. |
protected java.lang.String |
LongType.format(java.lang.Object obj)
Formats a Long type. |
protected java.lang.String |
OracleCursorType.format(java.lang.Object obj)
Formats a Short type. |
protected java.lang.String |
OtherType.format(java.lang.Object obj)
Provides a toString wrapper for the Generic type. |
protected java.lang.String |
ShortType.format(java.lang.Object obj)
Formats a Short type. |
protected java.lang.String |
StringType.format(java.lang.Object obj)
Formats a String type. |
protected java.lang.String |
TextType.format(java.lang.Object obj)
Format the Text to an MD5 Digest String. |
protected java.lang.String |
TimeType.format(java.lang.Object obj)
Formats a TIME into its String representation. |
protected java.lang.String |
TimestampType.format(java.lang.Object obj)
Formats a TIMESTAMP into its String representation. |
protected java.lang.String |
UnsupportedType.format(java.lang.Object obj)
The formatting hook with default behavior which is meant to be overriden by the subclass. |
protected java.lang.String |
BinaryType.formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
protected java.lang.String |
BlobType.formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
protected java.lang.String |
ByteArrayType.formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
protected java.lang.String |
ClobType.formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
protected java.lang.String |
TextType.formatString(java.lang.String obj)
Defines behavior that is activated when the passed in Object is a String. |
protected java.lang.String |
UnsupportedType.formatString(java.lang.String obj)
The formatting hook which gets activated if the passed in Object is a String. |
protected java.lang.Object |
BigDecimalType.parse(java.lang.String str)
Parses a BigDecimal type. |
protected java.lang.Object |
BooleanType.parse(java.lang.String str)
Parses a Boolean type. |
protected java.lang.Object |
ByteType.parse(java.lang.String str)
Parses a Byte type. |
protected java.lang.Object |
DateType.parse(java.lang.String str)
Parses a String representing a DATE to a java.sql.Date. |
protected java.lang.Object |
DoubleType.parse(java.lang.String str)
Parses a Double type. |
protected java.lang.Object |
FloatType.parse(java.lang.String str)
Parses a Float type. |
protected java.lang.Object |
IntegerType.parse(java.lang.String str)
Parses a Integer type. |
protected java.lang.Object |
LongType.parse(java.lang.String str)
Parses a Long type. |
protected java.lang.Object |
ShortType.parse(java.lang.String str)
Parses a Short type. |
protected java.lang.Object |
StringType.parse(java.lang.String str)
Parses a String type. |
protected java.lang.Object |
TimeType.parse(java.lang.String str)
Parses a String representing a TIME to a Time object. |
protected java.lang.Object |
TimestampType.parse(java.lang.String str)
Parses a String representing a TIMESTAMP to a Timestamp. |
protected java.lang.Object |
UnsupportedType.parse(java.lang.String str)
The parsing hook with default behavior which is meant to be overriden by the subclass. |
java.lang.Object |
UnsupportedType.toObject(java.lang.String str)
Converts a String representation of the Object to the Object itself. |
java.lang.String |
UnsupportedType.toString(java.lang.Object obj)
Converts the Object to its String representation. |
Uses of SQLUnitException in net.sourceforge.sqlunit.utils |
---|
Methods in net.sourceforge.sqlunit.utils that throw SQLUnitException | |
---|---|
static java.lang.Object |
TypeUtils.convertToObject(java.lang.String value,
java.lang.String xmlType)
Converts a String representation of a specific xmlType to the corresponding Java object for use by PreparedStatement and its children. |
static java.lang.String |
TypeUtils.convertToString(java.lang.Object obj,
int sqlType)
Converts an Object with the specified type to the corresponding String representation. |
static java.lang.Object[] |
MethodInvocationUtils.getArguments(Arg[] args)
Convenience method to extract the argument values into an array of Objects to pass to Method.invoke(). |
static java.lang.Class[] |
MethodInvocationUtils.getArgumentTypes(Arg[] args)
Convenience method to extract the argument types into a Class array to pass to Method.invoke(). |
static byte[] |
DigestUtils.getByteCodeForObject(java.lang.Object obj)
Converts an object into an array of bytes. |
static java.lang.reflect.Constructor |
MethodInvocationUtils.getConstructor(java.lang.String className,
java.lang.Class[] ctorArgTypes)
Returns the constructor method for the specified class and the parameters. |
static java.lang.Object |
MethodInvocationUtils.getInstance(java.lang.String className)
Convenience method to instantiate a class without constructor args. |
static java.lang.Object |
MethodInvocationUtils.getInstance(java.lang.String className,
java.lang.Object[] ctorArgs,
java.lang.Class[] ctorArgTypes)
Get an instance of the object whose classname and initialization parameters are supplied. |
static java.lang.String |
DigestUtils.getMD5CheckSum(java.io.InputStream istream)
Returns the MD5 Checksum for a file or memory buffer represented by the specified InputStream object. |
static java.lang.String |
DigestUtils.getMD5CheckSum(java.lang.String str)
Takes a String and does the right thing to convert it to MD5 according to the following rules. |
static int |
TypeUtils.getSqlTypeFromXmlType(java.lang.String xmlType)
Returns the SQL Type given the XML Type name. |
static java.lang.String |
DigestUtils.getStringifiedObject(byte[] bytes)
Returns the String representation of an Object which is supplied to the method as a byte array. |
static java.lang.String |
DigestUtils.getStringifiedObject(java.io.InputStream istream)
Returns the String representation of an Object from an InputStream. |
static java.lang.String |
TypeUtils.getXmlTypeFromSqlType(int sqlType)
Returns the XML Type given the SQL Type Id. |
static java.lang.Object |
MethodInvocationUtils.invoke(java.lang.Object anObject,
java.lang.String methodName)
Convenience method to invoke a method without arguments. |
static java.lang.Object |
MethodInvocationUtils.invoke(java.lang.Object anObject,
java.lang.String methodName,
java.lang.Object[] arguments,
java.lang.Class[] argumentsType)
Invokes the specified method on the specified object and returns the result. |
static java.lang.Object |
MethodInvocationUtils.invoke(java.lang.String className,
java.lang.String staticMethodName)
Convenience method to invoke a named method on a named class with no arguments. |
static java.lang.Object |
MethodInvocationUtils.invoke(java.lang.String className,
java.lang.String staticMethodName,
java.lang.Object[] arguments,
java.lang.Class[] argumentsType)
Invokes a named method on a named class with the specified arguments. |
static byte[] |
DigestUtils.readBytesFromStream(java.io.InputStream istream)
Reads an InputStream and returns an array of bytes. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |