Search in sources :

Example 6 with I18nMessages

use of org.talend.daikon.i18n.I18nMessages in project components by Talend.

the class SnowflakeReaderTest method testI18NMessages.

@Test
public void testI18NMessages() {
    I18nMessages i18nMessages = GlobalI18N.getI18nMessageProvider().getI18nMessages(SnowflakeReader.class);
    String errorDuringProcessQueryMessage = i18nMessages.getMessage("error.processQuery");
    Assert.assertFalse(errorDuringProcessQueryMessage.equals("error.processQuery"));
}
Also used : I18nMessages(org.talend.daikon.i18n.I18nMessages) Test(org.junit.Test)

Example 7 with I18nMessages

use of org.talend.daikon.i18n.I18nMessages in project components by Talend.

the class SnowflakeSinkTest method testI18NMessages.

@Test
public void testI18NMessages() {
    I18nMessages i18nMessages = GlobalI18N.getI18nMessageProvider().getI18nMessages(SnowflakeSink.class);
    String wrongPropertiesTypeMessage = i18nMessages.getMessage("debug.wrongPropertiesType");
    Assert.assertFalse(wrongPropertiesTypeMessage.equals("debug.wrongPropertiesType"));
}
Also used : I18nMessages(org.talend.daikon.i18n.I18nMessages) Test(org.junit.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Aggregations

Test (org.junit.Test)7 I18nMessages (org.talend.daikon.i18n.I18nMessages)7 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)4 Schema (org.apache.avro.Schema)1 Connector (org.talend.components.api.component.Connector)1 TestComponentProperties (org.talend.components.api.service.common.testcomponent.TestComponentProperties)1 AbstractComponentTest (org.talend.components.api.test.AbstractComponentTest)1