cdx.scorebot.scoring.logic
Class TestData

java.lang.Object
  extended by cdx.scorebot.scoring.logic.TestData

public class TestData
extends java.lang.Object

Contains information regarding what test items are available and what configuration options and results they contain.

Author:
David Underhill

Field Summary
 java.util.HashMap<java.lang.String,LiteralType> options
          name-type pairs for options this test item's test contains
 java.util.HashMap<java.lang.String,LiteralType> results
          name-type pairs for results this test item's test contains
 java.lang.String testItemName
          name of the test item this information is for
 
Constructor Summary
TestData(java.lang.String testItemName, java.util.HashMap<java.lang.String,LiteralType> options, java.util.HashMap<java.lang.String,LiteralType> results)
          provide all needed test information explicitly
TestData(TestItem ti)
          all needed test information will be loaded for the test type contained by the specified test item
 
Method Summary
static java.util.HashMap<java.lang.String,TestData> createTestDataHash(TestSuite ts)
          prepares test data from a TestSuite (returns null if ts is null)
static java.util.HashMap<java.lang.String,TestData> createTestDataHash(java.util.Vector<TestItem> testItems)
          prepares test data from a vector of TestItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testItemName

public java.lang.String testItemName
name of the test item this information is for


options

public java.util.HashMap<java.lang.String,LiteralType> options
name-type pairs for options this test item's test contains


results

public java.util.HashMap<java.lang.String,LiteralType> results
name-type pairs for results this test item's test contains

Constructor Detail

TestData

public TestData(java.lang.String testItemName,
                java.util.HashMap<java.lang.String,LiteralType> options,
                java.util.HashMap<java.lang.String,LiteralType> results)
provide all needed test information explicitly


TestData

public TestData(TestItem ti)
all needed test information will be loaded for the test type contained by the specified test item

Method Detail

createTestDataHash

public static java.util.HashMap<java.lang.String,TestData> createTestDataHash(TestSuite ts)
prepares test data from a TestSuite (returns null if ts is null)


createTestDataHash

public static java.util.HashMap<java.lang.String,TestData> createTestDataHash(java.util.Vector<TestItem> testItems)
prepares test data from a vector of TestItems