felix.test
Class IOHDFSTest

java.lang.Object
  extended by felix.test.IOHDFSTest

public class IOHDFSTest
extends java.lang.Object

Test for generating evidence through the Blah Blah feature extraction language.

Author:
Josh Slauson

Field Summary
static tuffy.db.RDB db
           
 
Constructor Summary
IOHDFSTest()
           
 
Method Summary
 void checkEvidence(java.lang.String[] expect)
          Check if evidence was correctly loaded into a database table.
 void checkOutput(java.lang.String output, java.lang.String[] expect)
          Checks if output file contains expected results.
 void comboTest1()
          Combo test using evidence generated with Blah Blah and evidence from a file.
 void comboTest2()
          Combo test using evidence generated with Blah Blah and evidence from a database table.
 void comboTest3()
          Combo test using evidence generated with Blah Blah, evidence from a file, and evidence from a database table.
 void comboTest4()
          Combo test using evidence generated with Blah Blah for a text file and a XML file, evidence from a file, and evidence from a database table.
 void commentTest()
          Test the use of python comments.
 void importTest()
          Test using an import statement.
 void importTestXML()
          Test using an import statement with an XML file.
 void initTest()
          Test using @MAPINIT.
 void initTestXML()
          Test using @MAPINIT with with an XML file.
 void localTest()
          Test using -local option.
 void printTest()
          Test the use of python print statements.
 void reduceTest()
          Test using a custom @REDUCE method.
 void reduceTestXML()
          Test using a custom @REDUCE method with an XML file.
 void repeatTest()
          Test re-running with a feature that is already extracted.
static void setUp()
          Perform required setup for this test.
 void simpleTest()
          Simple smoke test.
 void simpleTestXML()
          Simple smoke test with an XML file.
 void xmlNoMatchTest()
          Test using an XML file with no matching tags.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

public static tuffy.db.RDB db
Constructor Detail

IOHDFSTest

public IOHDFSTest()
Method Detail

setUp

public static final void setUp()
Perform required setup for this test.


checkEvidence

public void checkEvidence(java.lang.String[] expect)
Check if evidence was correctly loaded into a database table.

Parameters:
expect -

checkOutput

public void checkOutput(java.lang.String output,
                        java.lang.String[] expect)
Checks if output file contains expected results.

Parameters:
output -
expect -

simpleTest

public void simpleTest()
Simple smoke test.


initTest

public void initTest()
Test using @MAPINIT.


importTest

public void importTest()
Test using an import statement.


reduceTest

public void reduceTest()
Test using a custom @REDUCE method.


simpleTestXML

public void simpleTestXML()
Simple smoke test with an XML file.


initTestXML

public void initTestXML()
Test using @MAPINIT with with an XML file.


importTestXML

public void importTestXML()
Test using an import statement with an XML file.


reduceTestXML

public void reduceTestXML()
Test using a custom @REDUCE method with an XML file.


localTest

public void localTest()
Test using -local option.


comboTest1

public void comboTest1()
Combo test using evidence generated with Blah Blah and evidence from a file.


comboTest2

public void comboTest2()
Combo test using evidence generated with Blah Blah and evidence from a database table.


comboTest3

public void comboTest3()
Combo test using evidence generated with Blah Blah, evidence from a file, and evidence from a database table.


comboTest4

public void comboTest4()
Combo test using evidence generated with Blah Blah for a text file and a XML file, evidence from a file, and evidence from a database table.


repeatTest

public void repeatTest()
Test re-running with a feature that is already extracted.


xmlNoMatchTest

public void xmlNoMatchTest()
Test using an XML file with no matching tags.


commentTest

public void commentTest()
Test the use of python comments.


printTest

public void printTest()
Test the use of python print statements.