????????μ?????????????ζ?????????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???????????????£?????????????????????????