[Seasar-user:20365] Re: S2JUnit4のコネクションについて
近藤雅彦
[E-MAIL ADDRESS DELETED]
2010年 11月 25日 (木) 17:30:58 JST
masa$B$G$9!#(B
$B<+8J2r7h$7$^$7$?!#(B
$B%W%m%8%'%/%H%5%$%H$NJ#?t$N%G!<%?%=!<%9$r(B
$B;29M$KJ#?t(BDB$B@\[E-MAIL ADDRESS DELETED]$G3+H/$7$F$$$^$7$?$,!"(B
jdbc.dicon$B$r0J2<$N$h$&$K=$@5$7$F$$$J$/!"@\[E-MAIL ADDRESS DELETED]$N$^$^$@$C$?$?$a!"(B
Junit$B<B9T;~$K(Bjdbc.dicon$B$H(Bjdbc-oracle.dicon$B$G(B2$BEY%3%M%/%7%g%s$rH/9T$7$F$$$?$h$&$G$9!#(B
---------------------------------
<components>
<include path="jdbc-oracle.dicon"/>
<include path="jdbc-db2.dicon"/>
</components>
---------------------------------
$BL5;v2r7h$G$-$^$7$?!#(B
$B5HED(B(zephiransas)$B$5$s!"%5%]!<%H$"$j$,$H$&$4$6$$$^$7$?!#(B
2010$BG/(B11$B7n(B25$BF|(B17:07 $B6aF#2mI'(B <[E-MAIL ADDRESS DELETED]>:
> 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
>>
>>
>
--
==================================================
$B3t<02q<R(B $B%o%$!&%G%#!&%7!<(B
$B%S%8%M%9%=%j%e!<%7%g%s;v6HK\It(B $B%S%8%M%9%=%j%e!<%7%g%sBh(B1$BIt(B
$B")(B183-8540
$BEl5~ETI\Cf;TI\CfD.(B1-9 $B5~2&I\Cf(B1$BCzL\%S%k(B
TEL$B!'(B042-352-6111 FAX$B!'(B042-352-6114
$B6aF#(B $B2mI'(B (Kondo Masahiko)
E-mail : [E-MAIL ADDRESS DELETED]
==================================================
==================================================
$BK\%a!<%k!&E:IU;qNA$KHkL)>pJs$,4^$^$l$k>l9g$,$"$j$^$9!#(B
$B<h$j07$$$K==J,$4Cm0U$$$?$@$-!"E>Aw!&N.MQ$K$O$4G[N84j$$$^$9!#(B
--------------------------------------------------
$B$*5RMM$+$i$N<uNN>pJs$N5-:\(B $B!'L5(B
$BJ@<R$[E-MAIL ADDRESS DELETED]>pJs$N5-:\(B $B!'L5(B
$B$=$NB>HkL)>pJs$N5-:\(B $B!'L5(B
==================================================
Seasar-user メーリングリストの案内