Skip to content

Commit

Permalink
Added trivial tests for type priorities loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Digo committed Jan 25, 2013
1 parent ab4d64a commit 1cdc421
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/edu/cmu/lti/oaqa/ecd/ExperimentBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public void testPrimitiveValuesPipeline() throws Exception {
public void testSetupStagedPipeline() throws Exception {
testPipelineSetup("test.partial-ecd-example");
}

@Test
public void testDirectLoadTypePrioritiesPipeline() throws Exception {
testPipelineSetup("test.type-priorities.direct-type-priorities-test");
}

@Test
public void testInheritLoadTypePrioritiesPipeline() throws Exception {
testPipelineSetup("test.type-priorities.inherit-type-priorities-test");
}

void testPipelineSetup(String resource) throws Exception {
ExperimentBuilder builder = setupExperimentBuilder(resource);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
configuration:
name: direct-type-priorities-test
author: junit

type-priorities:
type-list:
- edu.cmu.lti.oaqa.framework.types.InputElement
- edu.cmu.lti.oaqa.framework.types.OutputElement
- edu.cmu.lti.oaqa.framework.types.ProcessingStep

collection-reader:
inherit: test.collection.reader

pipeline:
- inherit: ecd.phase
name: first-phase
options: |
- inherit: test.first-phase-annotator-a
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
configuration:
name: inherit-type-priorities-test
author: junit

type-priorities:
inherit: test.type-priorities.test-type-priorities

collection-reader:
inherit: test.collection.reader

pipeline:
- inherit: ecd.phase
name: first-phase
options: |
- inherit: test.first-phase-annotator-a
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type-list:
- edu.cmu.lti.oaqa.framework.types.InputElement
- edu.cmu.lti.oaqa.framework.types.OutputElement
- edu.cmu.lti.oaqa.framework.types.ProcessingStep

0 comments on commit 1cdc421

Please sign in to comment.