Search in sources :

Example 1 with SnomedPlugin

use of com.b2international.snowowl.snomed.core.SnomedPlugin in project snow-owl by b2ihealthcare.

the class AllGenericValidationTests method init.

@BeforeClass
public static void init() {
    ValidationRuleEvaluator.Registry.register(new SnomedQueryValidationRuleEvaluator());
    final Path resourcesDir = PlatformUtil.toAbsoluteBundlePath(BaseGenericValidationRuleTest.class.getClassLoader().getResource("src/main/resources"));
    ValidationRuleEvaluator.Registry.register(new GroovyScriptValidationRuleEvaluator(resourcesDir));
    TerminologyRegistry.INSTANCE.register(new SnomedPlugin());
}
Also used : Path(java.nio.file.Path) GroovyScriptValidationRuleEvaluator(com.b2international.snowowl.core.validation.eval.GroovyScriptValidationRuleEvaluator) SnomedPlugin(com.b2international.snowowl.snomed.core.SnomedPlugin) SnomedQueryValidationRuleEvaluator(com.b2international.snowowl.snomed.validation.SnomedQueryValidationRuleEvaluator) BeforeClass(org.junit.BeforeClass)

Aggregations

GroovyScriptValidationRuleEvaluator (com.b2international.snowowl.core.validation.eval.GroovyScriptValidationRuleEvaluator)1 SnomedPlugin (com.b2international.snowowl.snomed.core.SnomedPlugin)1 SnomedQueryValidationRuleEvaluator (com.b2international.snowowl.snomed.validation.SnomedQueryValidationRuleEvaluator)1 Path (java.nio.file.Path)1 BeforeClass (org.junit.BeforeClass)1