use of com.amazon.dataprepper.model.configuration.PluginModel in project data-prepper by opensearch-project.
the class LogstashPluginMapperTest method mapPlugin_should_return_PluginModel_with_correct_pluginName.
@Test
void mapPlugin_should_return_PluginModel_with_correct_pluginName() {
final LogstashPlugin logstashPlugin = mock(LogstashPlugin.class);
when(logstashPlugin.getPluginName()).thenReturn("amazon_es");
final List<PluginModel> pluginModels = createObjectUnderTest().mapPlugin(logstashPlugin);
assertThat(pluginModels, notNullValue());
assertThat(pluginModels.get(0).getPluginName(), equalTo("opensearch"));
}
Aggregations