de.fzi.kadmos.cmdutils
Class EvaluatorTest
java.lang.Object
de.fzi.kadmos.cmdutils.EvaluatorTest
public class EvaluatorTest
- extends Object
- Author:
- Juergen Bock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvaluatorTest
public EvaluatorTest()
getAlignmentLocation
public static void getAlignmentLocation()
- Loads an alignment that can be used for both reference alignment or alignment for evaluation.
testParseArgumentsNoArguments
public final void testParseArgumentsNoArguments()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No argument given.
Expected: KADMOSCMDException
- Throws:
Exception
testParseArgumentsNoAlignmentNoOptions
public final void testParseArgumentsNoAlignmentNoOptions()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
Reference given, but no alignment, no options.
Expected: IllegalArgumentException
- Throws:
Exception
testParseArgumentsNoOptionsResolvableURLs
public final void testParseArgumentsNoOptionsResolvableURLs()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No options, reference and alignment as resolvable URLs
Expected: Reference and alignment locations correctly loaded.
- Throws:
Exception
testParseTwoArgumentsNoOptionsResolvableURLs
public final void testParseTwoArgumentsNoOptionsResolvableURLs()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No options, reference and alignment as resolvable URLs
Expected: Reference and alignment locations correctly loaded.
- Throws:
Exception
testParseArgumentsNoOptionsAbsolutePathnames
public final void testParseArgumentsNoOptionsAbsolutePathnames()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No options, reference and alignment as absolute pathnames
Expected: Reference and alignment locations correctly loaded.
- Throws:
Exception
testParseTwoArgumentsNoOptionsAbsolutePathnames
public final void testParseTwoArgumentsNoOptionsAbsolutePathnames()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No options, reference and alignment as absolute pathnames
Expected: Reference and alignment locations correctly loaded.
- Throws:
Exception
testParseArgumentsNoOptionsRelativePathnames
public final void testParseArgumentsNoOptionsRelativePathnames()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No options, reference and alignment as relative pathnames
Expected: Reference and alignment locations correctly loaded.
- Throws:
Exception
testParseArgumentsNoOption
public final void testParseArgumentsNoOption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
No option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is enabled.
- Throws:
Exception
testParseArgumentsCOption
public final void testParseArgumentsCOption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
-c option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is enabled.
- Throws:
Exception
testParseArgumentsSOption
public final void testParseArgumentsSOption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
-s option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is disabled,
computing symmetric precision and recall is enabled.
- Throws:
Exception
testParseArgumentsCandSOption
public final void testParseArgumentsCandSOption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
-c and -s options, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is disabled,
computing symmetric precision and recall is enabled.
- Throws:
Exception
testParseArgumentsClassicalPROption
public final void testParseArgumentsClassicalPROption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
--classical-pr option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is enabled.
- Throws:
Exception
testParseArgumentsSymmetricPROption
public final void testParseArgumentsSymmetricPROption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
--symmetric-pr option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is disabled,
computing symmetric precision and recall is enabled.
- Throws:
Exception
testParseArgumentsClassicalPRandSymmetricPROption
public final void testParseArgumentsClassicalPRandSymmetricPROption()
throws Exception
- Test method for
Evaluator.parseArguments(String[]).
--classical-pr and --symmetric-pr option, reference and alignment as resolvable URLs
Expected: computing classical precision and recall is disabled,
computing symmetric precision and recall is enabled.
- Throws:
Exception
testParseReferenceResolvableLocalURL
public final void testParseReferenceResolvableLocalURL()
throws Exception
- Test method for
Evaluator.parseReference(String).
Resolvable local URL given.
Expected: success
- Throws:
Exception
testParseReferenceNotResolvableURL
public final void testParseReferenceNotResolvableURL()
throws Exception
- Test method for
Evaluator.parseReference(String).
Not resolvable URL given.
Expected: success
- Throws:
Exception
testParseReferenceResolvablePathname
public final void testParseReferenceResolvablePathname()
throws Exception
- Test method for
Evaluator.parseReference(String).
Resolvable pathname given.
Expected: success
- Throws:
Exception
testParseReferenceNotResolvablePathname
public final void testParseReferenceNotResolvablePathname()
throws Exception
- Test method for
Evaluator.parseReference(String).
Not resolvable pathname given.
Expected: success
- Throws:
Exception
testParseAlignmentResolvableLocalURL
public final void testParseAlignmentResolvableLocalURL()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Resolvable local URL given.
Expected: success
- Throws:
Exception
testParseAlignmentNotResolvableURL
public final void testParseAlignmentNotResolvableURL()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Not resolvable URL given.
Expected: success
- Throws:
Exception
testParseAlignmentResolvablePathname
public final void testParseAlignmentResolvablePathname()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Resolvable pathname given.
Expected: success
- Throws:
Exception
testParseAlignmentNotResolvablePathname
public final void testParseAlignmentNotResolvablePathname()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Not resolvable pathname given.
Expected: success
- Throws:
Exception
testParseAlignmentTxtFile
public final void testParseAlignmentTxtFile()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests parsing of alignment text file
Expected: success
- Throws:
Exception
testParseAlignmentDeepScanDirectory
public final void testParseAlignmentDeepScanDirectory()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
testParseAlignmentBatch
public final void testParseAlignmentBatch()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
testParseAlignmentCreateCSV
public final void testParseAlignmentCreateCSV()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
testParseAlignmentLongOptCreateCSV
public final void testParseAlignmentLongOptCreateCSV()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
testParseAlignmentCreateGNU
public final void testParseAlignmentCreateGNU()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
testParseAlignmentLongOptCreateGNU
public final void testParseAlignmentLongOptCreateGNU()
throws Exception
- Test method for
Evaluator.parseAlignment(String).
Tests deep scan of directory
Expected: successs
- Throws:
Exception
Copyright © 2012. All Rights Reserved.