[Seasar-user:20364] Re: S2JUnit4のコネクションについて

近藤雅彦 [E-MAIL ADDRESS DELETED]
2010年 11月 25日 (木) 17:07:06 JST


masa$B$G$9!#(B

$B!z(Bs2junit4.dicon$B$O(Bdolteng$B%G%U%)%k%H$G$9!#(B
------------------------------------
<?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">

	<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>"app.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>
------------------------------------
$B!z(Bjdbc.dicon$B$O0J2<$NDL$j$G$9!#(B
<components namespace="jdbc">
	<include path="jta.dicon"/>

	<!-- for Oracle -->
	<component name="xaDataSource"
		class="org.seasar.extension.dbcp.impl.XADataSourceImpl">
		<property name="driverClassName">
			"oracle.jdbc.driver.OracleDriver"
		</property>
		<property name="URL">
			"jdbc:oracle:thin:@XXXXXXX:1521:XXXXXXX"
		</property>
		<property name="user">"XXXXXXX"</property>
		<property name="password">"XXXXXXX"</property>
	</component>

	<component name="connectionPool"
		class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl">
		<property name="timeout">600</property>
		<property name="maxPoolSize">10</property>
		<property name="allowLocalTx">true</property>
		<destroyMethod name="close"/>
	</component>

	<component name="DataSource"
		class="org.seasar.extension.dbcp.impl.DataSourceImpl"
	/>
</components>
------------------------------------
_______________________________________________
Seasar-user mailing list
[E-MAIL ADDRESS DELETED]
https://ml.seasar.org/mailman/listinfo/seasar-user


2010$BG/(B11$B7n(B25$BF|(B16:59 Takafumi Yoshida <[E-MAIL ADDRESS DELETED]>:
> $B5HED(B(zephiransas)@$B%*%W%F%#%/%9$G$9!#(B
>
>> $B0J2<$N%3%M%/%7%g%s%W!<%k$N%3%M%/%7%g%s$,0[$J$C$F$7$^$C$F$$$k$h$&$G$9!#(B
>> $B-!%F%9%HBP>]$N%a%=%C%I<B9T;~$K;vA0%G!<%?EPO?$J$I$r9T$&:]$K:G=i$K9T$J$o$l$k%3%M%/%7%g%s(B
>>  accessor.readXlsWriteDb("UserMDaoTest_Data.xls");
>> $B-"%F%9%HBP>]$N%a%=%C%I<B9T;~$N%3%M%/%7%g%s(B
>>   UserM entity = userMDao.findByIdDisallowNoResult(userId);
>>
>> $B$=$N$?$a(BassertEquals$B$G$N8!>Z$N:]$K!"(B
>> $B-"$,-!$GF~$lBX$($kA0$N(BDB$B$N%G!<%?$r8+$K9T$C$F$7$^$&$?$aCM$,0lCW$7$^$;$s!#(B
>>
>> $B%m%0$K$O!"(B
>> $B-!<B9T;~$K!VJ*M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!W(B
>> $B-"<B9T;~$K!VJ*M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!W$HI=<($5$l!"(B
>> $BF1$8%3%M%/%7%g%s$r;HMQ$7$F$J$$$h$&$G$9!#(B
>>
>> $B$I$&$9$l$P-!$N%3%M%/%7%g%s$r-"<B9T;~$b;H$$B3$1$k$3$H$,=PMh$k$N$G$7$g$&$+!)(B
>
> s2junit4.dicon$B$H(Bjdbc.dicon$B$[E-MAIL ADDRESS DELETED]$O$I$N$h$&$K$J$C$F$^$9$G$7$g$&$+!)(B
> #$BI,MW$G$"$l$[E-MAIL ADDRESS DELETED]$r%^%9%/$7$F$/$@$5$$!#(B
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
>


Seasar-user メーリングリストの案内