Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r34 - trunk/src/test/java/com/artilekt/modules/spring

jetmailer
Discussion topic

Back to topic list

svn commit: r34 - trunk/src/test/java/com/artilekt/modules/spring

Reply

Author volenin
Full name Vladimir Olenin
Date 2006-09-21 19:26:02 PDT
Message Author: volenin
Date: 2006-09-21 19:26:01-0700
New Revision: 34

Added:
   trunk/src/test/java/​com/artilekt/modules​/spring/
   trunk/src/test/java/​com/artilekt/modules​/spring/BeanNameReso​lutionConfigurerTest​.java
   trunk/src/test/java/​com/artilekt/modules​/spring/test-beanRef​Factory.xml
   trunk/src/test/java/​com/artilekt/modules​/spring/test-beans.x​ml
   trunk/src/test/java/​com/artilekt/modules​/spring/test-beansSe​rvice.xml

Log:


Added: trunk/src/test/java/​com/artilekt/modules​/spring/BeanNameReso​lutionConfigurerTest​.java
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/spring/​BeanNameResolutionCo​nfigurerTest.java?vi​ew=auto&rev=34
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/spring/BeanNameReso​lutionConfigurerTest​.java 2006-09-21 19:26:01-0700
@@ -0,0 +1,28 @@
+package com.artilekt.modules.spring;
+
+import junit.framework.TestCase;
+import org.springframework.​beans.factory.BeanFa​ctory;
+import org.springframework.​context.support.Clas​sPathXmlApplicationC​ontext;
+
+/**
+ * Author: Vladimir Olenin
+ * Date: 21-Sep-2006
+ * Time: 22:13:45
+ */
+public class BeanNameResolutionCo​nfigurerTest extends TestCase {
+
+ public void test() throws Exception {
+ ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
+ new String[]{"com/artile​kt/modules/spring/te​st-beans.xml", "com/artilekt/module​s/spring/test-beanRe​fFactory.xml"});
+ BeanFactory factory = (BeanFactory)appContext;
+ Object obj = factory.getBean("testBean");
+ System.out.println("obj = "+obj);
+
+ BeanFactory fac = (BeanFactory)factory​.getBean("com.artile​kt.modules.spring.te​st");
+ System.out.println("fac = " + fac);
+
+ obj = fac.getBean("testBeanService");
+ System.out.println("fac obj = " + obj);
+ }
+
+}

Added: trunk/src/test/java/​com/artilekt/modules​/spring/test-beanRef​Factory.xml
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/spring/​test-beanRefFactory.​xml?view=auto&re​v=34
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/spring/test-beanRef​Factory.xml 2006-09-21 19:26:01-0700
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springfra​mework.org/dtd/sprin​g-beans.dtd">
+
+<beans>
+ <bean id="com.artilekt.mod​ules.spring.test" lazy-init="true"
+ class="org.springfra​mework.context.suppo​rt.ClassPathXmlAppli​cationContext">
+ <constructor-arg>
+ <list>
+ <value>com/art​ilekt/modules/spring​/test-beansService.x​ml</value>
+ </list>
+ </constructor-arg>
+ </bean>
+</beans>
\ No newline at end of file

Added: trunk/src/test/java/​com/artilekt/modules​/spring/test-beans.x​ml
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/spring/​test-beans.xml?view=​auto&rev=34
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/spring/test-beans.x​ml 2006-09-21 19:26:01-0700
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springfra​mework.org/dtd/sprin​g-beans.dtd">
+
+<beans>
+ <bean id="configurer" class="com.artilekt.​modules.spring.BeanN​ameResolutionConfigu​rer"/>
+
+ <bean id="testBean" class="java.lang.String">
+ <constructor-arg value="Test Bean"/>
+ </bean>
+
+</beans>

Added: trunk/src/test/java/​com/artilekt/modules​/spring/test-beansSe​rvice.xml
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/spring/​test-beansService.xm​l?view=auto&rev=​34
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/spring/test-beansSe​rvice.xml 2006-09-21 19:26:01-0700
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springfra​mework.org/dtd/sprin​g-beans.dtd">
+
+<beans>
+ <bean id="testBeanService" class="java.lang.String">
+ <constructor-arg value="Test Bean Service"/>
+ </bean>
+
+</beans>

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r34 - trunk/src/test/java/com/artilekt/modules/spring volenin Vladimir Olenin 2006-09-21 19:26:02 PDT
Messages per page: