use of eu.esdihumboldt.hale.common.align.model.impl.mdexpl.test.TestExplanation2 in project hale by halestudio.
the class MarkdownCellExplanationTest method testExplanation.
@Test
public void testExplanation() {
TestExplanation2 exp = new TestExplanation2();
Cell cell = createTestCell();
String expected = //
"Source 'source1Type'\n" + //
"Source 'source1Type'\n" + //
"Target 'target1Type'\n" + //
"test 1\n" + //
"test 2\n" + "pattern 3";
String expl = exp.getExplanation(cell, null, Locale.getDefault());
org.junit.Assert.assertNotNull(expl);
assertEquals(expected, expl);
}
use of eu.esdihumboldt.hale.common.align.model.impl.mdexpl.test.TestExplanation2 in project hale by halestudio.
the class MarkdownCellExplanationTest method testLocales2.
@Test
public void testLocales2() {
TestExplanation2 exp = new TestExplanation2();
Set<Locale> locales = new HashSet<>();
Iterables.addAll(locales, exp.getSupportedLocales());
assertTrue(locales.contains(Locale.ENGLISH));
assertEquals(1, locales.size());
}
Aggregations