[CONTAINER-98] S2JUnit4へ@PostBindFields/@PreUnbindFieldsを導入しました Created: 2007-10-18  Updated: 2008-07-14  Resolved: 2008-07-10

Status: Resolved
Project: S2Container
Component/s: S2-Tiger
Affects Version/s: 2.4.17
Fix Version/s: 2.4.27

Type: Improvement Priority: Major
Reporter: manhole Assignee: j5ik2o
Resolution: Fixed Votes: 1
Labels: None


 Description   

JUnit3ベースのS2TestCaseで提供しているsetUpAfterBindFields・tearDownBeforeUnbindFieldsを、S2JUnit4でも使用できるようにする。



 Comments   
Comment by j5ik2o [ 2008-07-10 ]

ユニットテストおよびSNAPSHOT版のs2-tigerでも動作確認が完了しました.

Comment by j5ik2o [ 2008-07-08 ]

アノテーションとして@PostBindFields, @PreUnbindFields,メソッド名としてpostBindFields, preUnbindFieldsをサポートするようにしました.
ソースはtrunkにコミット済みです.一度チェックしていただければと思います.

Comment by higa [ 2008-05-23 ]

これどうします?
長い間そのままなので、対応しないならいったんクローズにしたいと思っています。

Comment by manhole [ 2007-10-20 ]

S2TestCaseでは

  • setUpAfterBindFields
  • tearDownBeforeUnbindFields

この2つがペアですから、後者は@BeforeUnbindFieldsになるとして、
JUnit4の@Before, @Afterと合わなくなるのをどうにかしたいと思います。
("before"でも、@Beforeはテストの前に動き、@BeforeUnbindFieldsはテストの後に動く)

Comment by taedium [ 2007-10-20 ]

迷うところですが、@AfterBindFieldsがわかりやすくていいんじゃないでしょうか。

Comment by manhole [ 2007-10-18 ]

@BeforeAfterBindFields というのはどうでしょう。(beforeなのかafterなのか、わかりづらいかも...)

Comment by manhole [ 2007-10-18 ]

JUnit3→JUnit4で、ネーミングが若干変わっている(setUp→@Beforeなど)ので、"setUpAfterBindFields"そのままではなくJUnit4に合わせたネーミングにする方が良いかな。

Generated at Thu Mar 28 22:15:27 JST 2024 using Jira 9.13.0#9130001-sha1:94297e63fec900085df7b42441d17146fe025bb5.