test.org.sakaiproject.tool.assessment.business.entity.helper
Class AuthoringHelperTest

java.lang.Object
  extended bytest.org.sakaiproject.tool.assessment.business.entity.helper.AuthoringHelperTest

public class AuthoringHelperTest
extends Object

Test program

Version:
$Id: AuthoringHelperTest.java 1823 2005-09-19 18:58:30Z esmiley@stanford.edu $
Author:
Ed Smiley esmiley@stanford.edu

Constructor Summary
AuthoringHelperTest()
           
 
Method Summary
 AssessmentFacade createImportedAssessment(Document document)
          copy of method in AuthoringHelper with persistence turned off.
 ItemFacade createImportedItem(Document document)
          Version of method in AuthoringHelper, but with persistence disabled.
static void main(String[] args)
           
static void testAssessments(String myPath, String[] myDocs)
           
static void testItems(String myPath, String[] myDocs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthoringHelperTest

public AuthoringHelperTest()
Method Detail

main

public static void main(String[] args)

testAssessments

public static void testAssessments(String myPath,
                                   String[] myDocs)

testItems

public static void testItems(String myPath,
                             String[] myDocs)

createImportedAssessment

public AssessmentFacade createImportedAssessment(Document document)
copy of method in AuthoringHelper with persistence turned off. Import an XML document in QTI format, extract and persist the data.

Parameters:
document - the document
Returns:
a persisted assessment

createImportedItem

public ItemFacade createImportedItem(Document document)
Version of method in AuthoringHelper, but with persistence disabled. Import an item XML document in QTI format, extract & persist the data.

Parameters:
document - the item XML document in QTI format
Returns:
a persisted assessment