[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 Sun Apr 13 03:12:13 JST 2025 using Jira 10.5.0#10050000-sha1:9d9d098bb7b67e8dba8da380ba9c3900d82ac3cf.