svnno****@sourc*****
svnno****@sourc*****
2008年 1月 28日 (月) 13:42:37 JST
Revision: 799 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=799 Author: shinsuke Date: 2008-01-28 13:42:36 +0900 (Mon, 28 Jan 2008) Log Message: ----------- added code. Modified Paths: -------------- pompei/libraries/pompei-db/trunk/.classpath pompei/libraries/pompei-db/trunk/pom.xml Added Paths: ----------- pompei/libraries/pompei-db/trunk/src/main/java/ pompei/libraries/pompei-db/trunk/src/main/java/jp/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java pompei/libraries/pompei-db/trunk/src/test/ pompei/libraries/pompei-db/trunk/src/test/java/ pompei/libraries/pompei-db/trunk/src/test/java/jp/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/PompeiTestConstants.java pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java pompei/libraries/pompei-db/trunk/src/test/resources/ pompei/libraries/pompei-db/trunk/src/test/resources/app.dicon pompei/libraries/pompei-db/trunk/src/test/resources/convention.dicon pompei/libraries/pompei-db/trunk/src/test/resources/creator.dicon pompei/libraries/pompei-db/trunk/src/test/resources/customizer.dicon pompei/libraries/pompei-db/trunk/src/test/resources/jdbc.dicon pompei/libraries/pompei-db/trunk/src/test/resources/jp/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.xls pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest_getCustomerList_Expected.xls pompei/libraries/pompei-db/trunk/src/test/resources/s2container.dicon pompei/libraries/pompei-db/trunk/src/test/resources/s2junit4.dicon -------------- next part -------------- Modified: pompei/libraries/pompei-db/trunk/.classpath =================================================================== --- pompei/libraries/pompei-db/trunk/.classpath 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/.classpath 2008-01-28 04:42:36 UTC (rev 799) @@ -6,26 +6,27 @@ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="var" path="M2_REPO/org/seasar/container/s2-framework/2.4.21/s2-framework-2.4.21.jar"/> <classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar" sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0/geronimo-ejb_3.0_spec-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/com/h2database/h2/1.0.65/h2-1.0.65.jar"/> + <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/pal/pompei-db-h2/0.1.0-SNAPSHOT/pompei-db-h2-0.1.0-SNAPSHOT.jar" sourcepath="M2_REPO/jp/sf/pal/pompei-db-h2/0.1.0-SNAPSHOT/pompei-db-h2-0.1.0-SNAPSHOT-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/junit-addons/junit-addons/1.4/junit-addons-1.4.jar"/> + <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" sourcepath="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.0/geronimo-jta_1.1_spec-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/org/easymock/easymock/2.2/easymock-2.2.jar"/> + <classpathentry kind="var" path="M2_REPO/jboss/javassist/3.4.ga/javassist-3.4.ga.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/dao/s2-dao-tiger/1.0.47/s2-dao-tiger-1.0.47.jar"/> <classpathentry kind="var" path="M2_REPO/org/seasar/container/s2-extension/2.4.21/s2-extension-2.4.21.jar"/> <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/com/h2database/h2/1.0.65/h2-1.0.65.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.0/geronimo-jpa_3.0_spec-1.0.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0/geronimo-servlet_2.4_spec-1.0.jar"/> <classpathentry kind="var" path="M2_REPO/org/seasar/dao/s2-dao/1.0.47/s2-dao-1.0.47.jar"/> <classpathentry kind="var" path="M2_REPO/junit/junit/4.3.1/junit-4.3.1.jar"/> - <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jsp_2.0_spec/1.0/geronimo-jsp_2.0_spec-1.0.jar"/> - <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/jp/sf/pal/pompei-db-h2/0.1.0-SNAPSHOT/pompei-db-h2-0.1.0-SNAPSHOT.jar" sourcepath="M2_REPO/jp/sf/pal/pompei-db-h2/0.1.0-SNAPSHOT/pompei-db-h2-0.1.0-SNAPSHOT-sources.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/portals/jetspeed-2/jetspeed-api/2.1.3/jetspeed-api-2.1.3.jar"/> <classpathentry kind="var" path="M2_REPO/ognl/ognl/2.6.9-patch-20070908/ognl-2.6.9-patch-20070908.jar"/> - <classpathentry kind="var" path="M2_REPO/junit-addons/junit-addons/1.4/junit-addons-1.4.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/poi/poi/3.0-FINAL/poi-3.0-FINAL.jar"/> <classpathentry kind="var" path="M2_REPO/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/> - <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar" sourcepath="M2_REPO/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2-sources.jar"/> <classpathentry kind="var" path="M2_REPO/org/seasar/container/s2-tiger/2.4.21/s2-tiger-2.4.21.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-ejb_2.1_spec/1.0/geronimo-ejb_2.1_spec-1.0.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.0/geronimo-jta_1.1_spec-1.0.jar"/> - <classpathentry kind="var" path="M2_REPO/org/easymock/easymock/2.2/easymock-2.2.jar"/> - <classpathentry kind="var" path="M2_REPO/org/seasar/dao/s2-dao-tiger/1.0.47/s2-dao-tiger-1.0.47.jar"/> - <classpathentry kind="var" path="M2_REPO/jboss/javassist/3.4.ga/javassist-3.4.ga.jar"/> </classpath> \ No newline at end of file Modified: pompei/libraries/pompei-db/trunk/pom.xml =================================================================== --- pompei/libraries/pompei-db/trunk/pom.xml 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/pom.xml 2008-01-28 04:42:36 UTC (rev 799) @@ -38,6 +38,11 @@ </organization> <build> <defaultGoal>validate</defaultGoal> + <testResources> + <testResource> + <directory>${basedir}/src/test/resources</directory> + </testResource> + </testResources> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> @@ -47,6 +52,10 @@ </configuration> </plugin> <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.3</version> + </plugin> + <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> @@ -151,11 +160,17 @@ </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ejb_2.1_spec</artifactId> + <artifactId>geronimo-ejb_3.0_spec</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jpa_3.0_spec</artifactId> + <version>1.0</version> + <scope>provided</scope> + </dependency> + <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,36 @@ +package jp.sf.pal.pompei.service; + +import java.io.Serializable; +import java.util.List; + +import jp.sf.pal.pompei.exentity.Customer; + +public interface CustomerService extends Serializable { + + public List<Customer> getCustomerList(); + +// public Customer getCustomer(BigDecimal customersId); +// +// public void deleteCustomer(BigDecimal customersId); +// +// public AddressBook getAddressBook(BigDecimal addressBookId); +// +// public AddressBook getDefaultAddressBook(BigDecimal customerId); +// +// public void addAddressBook(AddressBook addressBook); +// +// public void deleteAddressBook(AddressBook addressBook); +// +// public List<AddressBook> getAddressBookList(BigDecimal customerId); +// +// public void addCustomer(Customer customers, AddressBook addressBook); +// +// public void addCustomer(Map<String, String> userInfo, Customer customers, +// AddressBook addressBook) throws CommonException; +// +// public Zone getZone(BigDecimal zoneId); +// +// public Customer getCustomerByPortalId(String portalId); +// +// public void updateCustomer(Customer customer, AddressBook addressBook); +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,32 @@ +package jp.sf.pal.pompei.service.impl; + +import java.util.List; + +import jp.sf.pal.pompei.cbean.CustomerCB; +import jp.sf.pal.pompei.exbhv.CustomerBhv; +import jp.sf.pal.pompei.exentity.Customer; +import jp.sf.pal.pompei.service.CustomerService; + +public class CustomerServiceImpl implements CustomerService { + + private static final long serialVersionUID = 6825151685109326492L; + + private CustomerBhv customerBhv; + + public List<Customer> getCustomerList() { + CustomerCB customerCB = new CustomerCB(); + customerCB.query().addOrderBy_LastnameDescription_Asc(); + customerCB.query().addOrderBy_Lastname_Asc(); + + return getCustomerBhv().selectList(customerCB); + } + + public CustomerBhv getCustomerBhv() { + return customerBhv; + } + + public void setCustomerBhv(CustomerBhv customerBhv) { + this.customerBhv = customerBhv; + } + +} Property changes on: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/PompeiTestConstants.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/PompeiTestConstants.java 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/PompeiTestConstants.java 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,5 @@ +package jp.sf.pal.pompei; + +public class PompeiTestConstants { + +} Property changes on: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/PompeiTestConstants.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,25 @@ +package jp.sf.pal.pompei.service.impl; + +import static org.seasar.framework.unit.S2Assert.assertEquals; + +import java.util.List; + +import jp.sf.pal.pompei.exentity.Customer; +import jp.sf.pal.pompei.service.CustomerService; + +import org.junit.runner.RunWith; +import org.seasar.framework.unit.Seasar2; +import org.seasar.framework.unit.TestContext; + + @ RunWith(Seasar2.class) +public class CustomerServiceImplTest { + private TestContext ctx; + + private CustomerService customerService; + + public void getCustomerList() throws Exception { + List<Customer> customerList = customerService.getCustomerList(); + System.out.println("TEST: "+customerList); + assertEquals("1", ctx.getExpected(), customerList); + } +} Property changes on: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/libraries/pompei-db/trunk/src/test/resources/app.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/app.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/app.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include path="convention.dicon"/> + <include path="aop.dicon"/> + <include path="dbflute.dicon"/> + <include path="dxo.dicon"/> +</components> Added: pompei/libraries/pompei-db/trunk/src/test/resources/convention.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/convention.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/convention.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" + "http://www.seasar.org/dtd/components21.dtd"> +<components> + <component class="org.seasar.framework.convention.impl.NamingConventionImpl"> + <initMethod name="addRootPackageName"> + <arg>"jp.sf.pal.pompei"</arg> + </initMethod> + </component> +</components> Added: pompei/libraries/pompei-db/trunk/src/test/resources/creator.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/creator.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/creator.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="Shift_JIS"?> +<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" + "http://www.seasar.org/dtd/components21.dtd"> +<components> + <include path="convention.dicon"/> + <include path="customizer.dicon"/> + <component class="org.seasar.framework.container.creator.PageCreator"/> + <component class="org.seasar.framework.container.creator.ActionCreator"/> + <component class="org.seasar.framework.container.creator.DaoCreator"/> + <component class="org.seasar.framework.container.creator.DtoCreator"/> + <component class="org.seasar.framework.container.creator.DxoCreator"/> + <component class="org.seasar.framework.container.creator.HelperCreator"/> + <component class="org.seasar.framework.container.creator.LogicCreator"/> + <component class="org.seasar.framework.container.creator.ServiceCreator"/> + <component class="org.seasar.framework.container.creator.InterceptorCreator"/> + <component class="org.seasar.framework.container.creator.ValidatorCreator"/> + <component class="org.seasar.framework.container.creator.ConverterCreator"/> +</components> \ No newline at end of file Added: pompei/libraries/pompei-db/trunk/src/test/resources/customizer.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/customizer.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/customizer.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include path="default-customizer.dicon"/> + + <component name="pageCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg> + <component class="org.seasar.framework.container.customizer.AspectCustomizer"> + <initMethod name="addInterceptorName"> + <arg>"app_aop.appFacesExceptionThrowsInterceptor"</arg> + </initMethod> + <property name="pointcut">"do.*, initialize, prerender"</property> + </component> + </arg> + </initMethod> + </component> + <component name="actionCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg> + <component class="org.seasar.framework.container.customizer.AspectCustomizer"> + <initMethod name="addInterceptorName"> + <arg>"app_aop.actionSupportInterceptor"</arg> + </initMethod> + <property name="pointcut">"do.*, initialize, prerender"</property> + </component> + </arg> + </initMethod> + </component> + <component name="serviceCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg>requiredTxCustomizer</arg> + </initMethod> + </component> + <component name="logicCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + </component> + <component name="daoCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg>s2DaoCustomizer</arg> + </initMethod> + </component> + <component name="dxoCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg>s2DxoCustomizer</arg> + </initMethod> + </component> + <component name="helperCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>traceCustomizer</arg> + </initMethod> + </component> +</components> Added: pompei/libraries/pompei-db/trunk/src/test/resources/jdbc.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/jdbc.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/jdbc.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components namespace="jdbc"> + <include path="jta.dicon"/> + <include path="jdbc-extension.dicon"/> + + <component class="org.seasar.extension.jdbc.impl.BasicResultSetFactory"/> + <component class="org.seasar.extension.jdbc.impl.ConfigurableStatementFactory"> + <arg> + <component class="org.seasar.extension.jdbc.impl.BasicStatementFactory"/> + </arg> + <property name="fetchSize">100</property> + <!-- + <property name="maxRows">100</property> + --> + </component> + <!-- + <component class="org.seasar.extension.jdbc.impl.OracleResultSetFactory"/> + <component class="org.seasar.extension.jdbc.impl.BooleanToIntStatementFactory"/> + --> + + <!-- for H2 --> + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "org.h2.Driver" + </property> + <property name="URL"> + "jdbc:h2:file:" + + @org.seasar.framework.util.ResourceUtil @ getBuildDir(@jp.sf.pal.pompei.PompeiTestConstants @ class).getCanonicalPath() + + "/db/pompei" + </property> + <property name="user">"sa"</property> + <property name="password">""</property> + <destroyMethod> + @org.seasar.framework.util.DriverManagerUtil @ deregisterAllDrivers() + </destroyMethod> + </component> + + <component class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl"> + <property name="timeout">600</property> + <property name="maxPoolSize">10</property> + <destroyMethod name="close"/> + </component> + + <component class="org.seasar.extension.dbcp.impl.DataSourceImpl"/> + +</components> Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.xls =================================================================== (Binary files differ) Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest.xls ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest_getCustomerList_Expected.xls =================================================================== (Binary files differ) Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/CustomerServiceImplTest_getCustomerList_Expected.xls ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pompei/libraries/pompei-db/trunk/src/test/resources/s2container.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/s2container.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/s2container.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include condition="#ENV == 'ut'" path="warmdeploy.dicon"/> + <include condition="#ENV == 'ct'" path="hotdeploy.dicon"/> + <include condition="#ENV != 'ut' and #ENV != 'ct'" path="cooldeploy.dicon"/> +</components> \ No newline at end of file Added: pompei/libraries/pompei-db/trunk/src/test/resources/s2junit4.dicon =================================================================== --- pompei/libraries/pompei-db/trunk/src/test/resources/s2junit4.dicon 2008-01-26 12:58:20 UTC (rev 798) +++ pompei/libraries/pompei-db/trunk/src/test/resources/s2junit4.dicon 2008-01-28 04:42:36 UTC (rev 799) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> +<components namespace="s2junit4"> + <include path="app.dicon"/> + <component name="context" class="org.seasar.framework.unit.impl.InternalTestContextImpl"/> + <component class="org.seasar.framework.unit.impl.DataAccessorImpl"/> + <component class="org.seasar.framework.unit.impl.ConfigFileIncluderImpl"> + <initMethod name="addConfigFile"> + <arg>"javaee5.dicon"</arg> + </initMethod> + <initMethod name="addConfigFile"> + <arg>context.testClassShortName + ".dicon"</arg> + </initMethod> + </component> + <component class="org.seasar.framework.unit.impl.TestDataPreparerImpl"> + <initMethod name="addTestDataXlsPath"> + <arg>context.testClassShortName + "_" + context.testMethodName + ".xls"</arg> + </initMethod> + <initMethod name="addTestDataXlsPath"> + <arg>context.testClassShortName + ".xls"</arg> + </initMethod> + </component> + <component class="org.seasar.framework.unit.impl.ExpectedDataReaderImpl"> + <initMethod name="addExpectedDataXlsPath"> + <arg>context.testClassShortName + "_" + context.testMethodName + "_Expected" + ".xls"</arg> + </initMethod> + </component> +</components>