use of org.eclipse.xtend.core.conversion.RichTextEndValueConverter in project xtext-xtend by eclipse.
the class RichTextValueConverterTest method doTestIncompleteRichStringEnd.
protected void doTestIncompleteRichStringEnd(String text, String expectation) {
RichTextEndValueConverter converter = get(RichTextEndValueConverter.class);
try {
converter.toValue(text, null);
fail("Expected ValueConverterWithValueException");
} catch (ValueConverterWithValueException e) {
String value = (String) e.getValue();
assertEquals(expectation, value);
}
}
use of org.eclipse.xtend.core.conversion.RichTextEndValueConverter in project xtext-xtend by eclipse.
the class RichTextValueConverterTest method testRichTextEnd.
@Test
public void testRichTextEnd() {
String text = "�foobar '''";
String expectation = "foobar ";
RichTextEndValueConverter converter = get(RichTextEndValueConverter.class);
String value = converter.toValue(text, null);
assertEquals(expectation, value);
}
Aggregations