????μ???????????
???????????? ???????[ 2011/10/31 14:11:00 ] ????????
????????μ?????????????ζ?????????Junit????TestNG?????????Junit(???????????????????????????????????У?TestNG ?????? from here on I??ll nominate it only for briefness??but TestNG is the same for my discussion)????????????????????е???????????????????ζ????????????????????????????????????У??????????????????????????????????Щ????????
???????汾??Junit?У????????????????????Junit????е?????????????????????"test"?????????????????????????????????????????????????????????????????????????????????TestNG??Junit4??????????????????????Щ???????????????????????????????????????????????????????????????????????????????Щ????????
?????????к????????????????????!????????BDD(Behaviour Driven Development)???????BDD??????????μ??????????????????????????????????????????????????????BDD?ɡ?
????BDD??????????μ?д????????????????????????μ???????
????????behaviour-driven.org????????????
????BehaviourDrivenDevelopment grew out of a thought experiment based on NeuroLinguisticProgramming techniques. The idea is that the words you use influence the way you think about something
????BDD???????????????????滮????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????????????????????????????BDD????д??????????????Щ?????????/??????????????????????Щ????????/??????????????????????????????д???????????????磬???????????????????????????????????????
????OK?? what if I don??t believe on Neuro Linguistic Programming(??????滮?)???????????????????滮?????????????????????????????????????????????????????????????????????????????????????????????(???磬
??????shouldAcceptNullValue fails?????????????????????????????)??????????????????????
????Java????
1. @Test( expected = IllegalArgumentException.class )
????2. public void shouldNotPermitMethodNull() throws Exception {
????3. [..]
????4. }
????5. @Test( expected = IllegalArgumentException.class )
????6. public void shouldNotPermitEndPointNull() throws Exception {
????7. }
????8. @Test
????9. public void shouldInitWebParams() throws Exception {
????10. }
????11. @Test
????12. public void getHoldersResultShouldReturnHolderForRightParameters() throws Exception {
????13. }
????14. @Test
????15. public void getHoldersResultShouldIgnoreUnknowntParameters() throws Exception {
????16. }
????17. @Test
????18. public void getHoldersResultShouldIgnoreINParameters() throws Exception {
????19. }
????20. @Test
????21. public void shouldRuninvokeForOneWayMethod() throws Exception {
????22. }
????23. @Test
????24. public void shouldRuninvokeForMethods() throws Exception {
????25. }
????26. @Test
????27. public void shouldRuninvokeForMethodsApplyingMapping() throws Exception {
????28. }
???????????????????????????BDD???????java????????(????????????Ruby??s RSpec)??????????excellent post.
?????BDD???????
???????????NO??BDD???????????????£?????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11