This is an automated email from the ASF dual-hosted git repository. martin_s pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/archiva-redback-components-spring-utils.git
commit 38388c527837af008d543be5175e04685cf50c15 Author: Olivier Lamy <ol...@apache.org> AuthorDate: Sun Apr 28 10:25:44 2013 +0000 add unit test git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1476751 13f79535-47bb-0310-9956-ffa450edef68 --- .../plexusshim/PlexusShimComponentTest.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/test/java/org/apache/archiva/redback/components/springutils/plexusshim/PlexusShimComponentTest.java b/src/test/java/org/apache/archiva/redback/components/springutils/plexusshim/PlexusShimComponentTest.java new file mode 100644 index 0000000..a5b88a5 --- /dev/null +++ b/src/test/java/org/apache/archiva/redback/components/springutils/plexusshim/PlexusShimComponentTest.java @@ -0,0 +1,31 @@ +package org.apache.archiva.redback.components.springutils.plexusshim; + +import junit.framework.Assert; +import org.apache.maven.index.NexusIndexer; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +import javax.inject.Inject; + +/** + * @author Olivier Lamy + */ +@RunWith( SpringJUnit4ClassRunner.class ) +@ContextConfiguration( + locations = { "classpath*:/META-INF/spring-context.xml" } ) +public class PlexusShimComponentTest +{ + + @Inject + private PlexusShimComponent plexusShimComponent; + + @Test + public void testMavenIndexerLoad() + throws Exception + { + NexusIndexer nexusIndexer = plexusShimComponent.lookup( NexusIndexer.class ); + Assert.assertNotNull( nexusIndexer ); + } +} -- To stop receiving notification emails like this one, please contact marti...@apache.org.