org.basex.query.util.unit
Class Unit

java.lang.Object
  extended by org.basex.query.util.unit.Unit

public final class Unit
extends java.lang.Object

XQuery Unit tests: Testing single modules.

Author:
BaseX Team 2005-13, BSD License, Christian Gruen

Constructor Summary
Unit(QueryContext qc, InputInfo ii)
          Constructor.
 
Method Summary
 FElem test()
          Performs the test function.
 FElem test(java.util.ArrayList<StaticFunc> funcs)
          Performs the test function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unit

public Unit(QueryContext qc,
            InputInfo ii)
Constructor.

Parameters:
ii - input info
qc - query context
Method Detail

test

public FElem test()
           throws QueryException
Performs the test function.

Returns:
resulting value
Throws:
QueryException - query exception

test

public FElem test(java.util.ArrayList<StaticFunc> funcs)
           throws QueryException
Performs the test function.

Parameters:
funcs - functions to test
Returns:
resulting value
Throws:
QueryException - query exception