Skip to content

Commit

Permalink
additional assertion added
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Gandhe <[email protected]>
  • Loading branch information
san81 committed Oct 1, 2024
1 parent 8a51524 commit ea0e09e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.jupiter.api.Test;
import org.opensearch.dataprepper.plugins.test.TestComponent;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.support.GenericApplicationContext;

import static org.hamcrest.CoreMatchers.equalTo;
Expand Down Expand Up @@ -112,5 +113,6 @@ void testInitializePluginSpecificIsolatedContext_with_empty_array() {
final PluginBeanFactoryProvider objectUnderTest = createObjectUnderTest();
BeanFactory beanFactory = objectUnderTest.initializePluginSpecificIsolatedContext(new Class[]{});
assertThat(beanFactory, notNullValue());
assertThrows(NoSuchBeanDefinitionException.class, ()->beanFactory.getBean(TestComponent.class));
}
}

0 comments on commit ea0e09e

Please sign in to comment.