Package nzilbb.ag
Class TestGraph
- java.lang.Object
-
- nzilbb.ag.TestGraph
-
public class TestGraph extends Object
Annotation Graph unit tests.
-
-
Constructor Summary
Constructors Constructor Description TestGraph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
annotationHierarchy()
Ensure traversals and tests of annotation hierarchy.void
assignWordsToUtterances()
Ensure assigning words to utterances works as expected.void
basicAttributes()
Test setting/getting of basic graph attributesvoid
basicChangeTracking()
Test graph correctly tracks Annotation/Anchor changes.void
basicObjectInterrelation()
Test relationships between graph elements are held.void
basicSpans()
Test span annotation.void
basicTagging()
Test functionality of taggin methodsvoid
changeOrder()
Test graph changes are reported in the correct order.void
compareOffsets1000()
Ensure setting offset granularity to 1/1000 works as expected.void
compareOffsets16000()
Ensure setting offset granularity to 1/16000 works as expected.void
constructionOrder()
Ensure order of creation of Anchors/Annotations is unimportant.void
createSubdivision()
Test annotation subdivision.void
easyAnchorChaining()
Ensure addAnnotation() automatically creates new anchors as required.void
extendedAttributes()
Test setting/getting of arbitrary attributesvoid
firstAndAll()
Test first() and all() function correctly.void
fragmentByAnnotation()
Test fragment creation by defining annotation.void
fragmentByBoundingAndAncestorAnnotations()
Test fragmnet cretion by bounding anchors and ancestor annotation - i.e.void
fragmentByOffset()
Test fragment creation by offset.void
fragmentByUtterance()
Test fragment creation by utterance.void
FragmentId()
Ensure fragment IDs are correctly generated.void
getAnchorAt()
Test getAnchorAt() works correctly.void
insertBeforeAfter()
Test annotation insertion results in correctly chaining.static void
main(String[] args)
void
orderOfAnnotationAnchorLinking()
Ensure annotions are linked to anchors correctly.void
ParseFragmentId()
Ensure fragment IDs are correctly parsed.
-
-
-
Method Detail
-
basicAttributes
public void basicAttributes()
Test setting/getting of basic graph attributes
-
extendedAttributes
public void extendedAttributes()
Test setting/getting of arbitrary attributes
-
basicObjectInterrelation
public void basicObjectInterrelation()
Test relationships between graph elements are held.
-
basicTagging
public void basicTagging()
Test functionality of taggin methods
-
basicSpans
public void basicSpans()
Test span annotation.
-
insertBeforeAfter
public void insertBeforeAfter()
Test annotation insertion results in correctly chaining.
-
createSubdivision
public void createSubdivision()
Test annotation subdivision.
-
basicChangeTracking
public void basicChangeTracking()
Test graph correctly tracks Annotation/Anchor changes.
-
changeOrder
public void changeOrder()
Test graph changes are reported in the correct order.
-
constructionOrder
public void constructionOrder()
Ensure order of creation of Anchors/Annotations is unimportant.
-
annotationHierarchy
public void annotationHierarchy()
Ensure traversals and tests of annotation hierarchy.
-
fragmentByOffset
public void fragmentByOffset()
Test fragment creation by offset.
-
fragmentByAnnotation
public void fragmentByAnnotation()
Test fragment creation by defining annotation.
-
fragmentByUtterance
public void fragmentByUtterance()
Test fragment creation by utterance.
-
fragmentByBoundingAndAncestorAnnotations
public void fragmentByBoundingAndAncestorAnnotations()
Test fragmnet cretion by bounding anchors and ancestor annotation - i.e. filter by participant
-
orderOfAnnotationAnchorLinking
public void orderOfAnnotationAnchorLinking()
Ensure annotions are linked to anchors correctly.
-
firstAndAll
public void firstAndAll()
Test first() and all() function correctly.
-
easyAnchorChaining
public void easyAnchorChaining()
Ensure addAnnotation() automatically creates new anchors as required.
-
compareOffsets1000
public void compareOffsets1000()
Ensure setting offset granularity to 1/1000 works as expected.
-
compareOffsets16000
public void compareOffsets16000()
Ensure setting offset granularity to 1/16000 works as expected.
-
getAnchorAt
public void getAnchorAt()
Test getAnchorAt() works correctly.
-
ParseFragmentId
public void ParseFragmentId()
Ensure fragment IDs are correctly parsed.
-
FragmentId
public void FragmentId()
Ensure fragment IDs are correctly generated.
-
assignWordsToUtterances
public void assignWordsToUtterances()
Ensure assigning words to utterances works as expected.
-
main
public static void main(String[] args)
-
-