[Seasar-user:20362] S2JUnit4のコネクションについて
近藤雅彦
[E-MAIL ADDRESS DELETED]
2010年 11月 25日 (木) 16:38:28 JST
masa$B$G$9!#(B
S2JUnit4$B$r;HMQ$7!"(BDao$B$N%F%9%H$r9T$J$C$F$$$k$N$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
$B!!(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
$B%F%9%HFbMF$H$7$F$O!"%W%m%8%'%/%H%5%$%H$N(B
examples.s2junit4.EmployeeDaoImplTest$B$NFbMF$HJQ$o$i$J$$$H;W$$$^$9!#(B
http://s2container.seasar.org/2.4/ja/S2JUnit4.html#sample
$B0J>e!"$h$m$7$/$*4j$$$7$^$9!#(B
Seasar-user メーリングリストの案内