geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r680945 - in /geronimo/gshell/trunk/gshell-wisdom/src/test: java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
Date Wed, 30 Jul 2008 08:54:35 GMT
Author: jdillon
Date: Wed Jul 30 01:54:32 2008
New Revision: 680945

URL: http://svn.apache.org/viewvc?rev=680945&view=rev
Log:
Make sure we can inject our plexus bits into spring

Added:
    geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
  (contents, props changed)
      - copied, changed from r680934, geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/PlexusSpringTest.java
    geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
  (contents, props changed)
      - copied, changed from r680934, geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/PlexusSpringTest-context.xml

Copied: geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
(from r680934, geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/PlexusSpringTest.java)
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java?p2=geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java&p1=geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/PlexusSpringTest.java&r1=680934&r2=680945&rev=680945&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/PlexusSpringTest.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
Wed Jul 30 01:54:32 2008
@@ -20,29 +20,18 @@
 package org.apache.geronimo.gshell.wisdom;
 
 import org.codehaus.plexus.spring.PlexusInSpringTestCase;
-import org.codehaus.plexus.spring.PlexusToSpringUtils;
+import org.apache.geronimo.gshell.artifact.ArtifactManager;
 
 /**
  * ???
  *
  * @version $Rev$ $Date$
  */
-public class PlexusSpringTest
+public class ArtifactManagerTest
     extends PlexusInSpringTestCase
 {
-    public void testIdConvert() throws Exception {
-        System.out.println("ID: " + PlexusToSpringUtils.buildSpringId(MyPlexusComponent.class,
"foo"));
-    }
-
-    public void testListBeans() throws Exception {
-        for (String name : applicationContext.getBeanDefinitionNames()) {
-            System.out.println(name);
-        }
-    }
-
-    public void testSpringBean() throws Exception {
-        MySpringComponent springComponent = (MySpringComponent) applicationContext.getBean("springComponent");
-        assertNotNull(springComponent);
-        assertNotNull(springComponent.getPlexusComponent());
+    public void testGetBean() throws Exception {
+        ArtifactManager artifactManager = (ArtifactManager) applicationContext.getBean("artifactManager");
+        assertNotNull(artifactManager);
     }
 }
\ No newline at end of file

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
------------------------------------------------------------------------------
    svn:mergeinfo = 

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/java/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
(from r680934, geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/PlexusSpringTest-context.xml)
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml?p2=geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml&p1=geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/PlexusSpringTest-context.xml&r1=680934&r2=680945&rev=680945&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/PlexusSpringTest-context.xml
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
Wed Jul 30 01:54:32 2008
@@ -27,8 +27,4 @@
             http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
             http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
 
-    <bean id="springComponent" class="org.apache.geronimo.gshell.wisdom.MySpringComponent">
-        <property name="plexusComponent" ref="myPlexusComponent"/>
-    </bean>
-
 </beans>
\ No newline at end of file

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
------------------------------------------------------------------------------
    svn:mergeinfo = 

Propchange: geronimo/gshell/trunk/gshell-wisdom/src/test/resources/org/apache/geronimo/gshell/wisdom/ArtifactManagerTest-context.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message