????????????????????????
???????????? ???????[ 2012/10/17 10:27:26 ] ????????
????public enum State {welcome?? register?? displayTickets?? terminal};
????public boolean loginEricOkGuard() {return loginGrd(); }
????@Action public void loginEricOk() { login(“ERIC”?? “ETO”); }
????public boolean loginGrd() {return state == State.welcome;}
????public void login(String userName?? String userPassword)
????{
????if (userName.equals(“”)) {
????message = “EMPTY_USERNAME”; /*@REQ: CIN_031 @*/
????}
????else if (userPassword.equals(“”)) {
????message = “EMPTY_PASSWORD”; /*@REQ: CIN_032 @*/
????}
????else if ( ! allUsers.containsKey(userName)) {
????message = “UNKNOWN_USER_NAME_PASSWORD”; /*@REQ: CIN_033 @*/
????}
????else {
????User user_found = allUsers.get(userName);
????if (user_found.password.equals(userPassword)) {
????currentUser = user_found;
????message = “WELCOME”; /*@REQ: CIN_030 @*/
????}
????else {
????message = “WRONG_PASSWORD”; /*@REQ: CIN_034 @*/
????}
????}
????}
????public Object getState()
????{
????}
????public void reset(boolean testing)
????{
????}
??????JunitModel?????annotation @Action ?????????????reset?case????reset????д?????????н???ж?????????????
???????????????????????Ч???????????????????????????????MBT???????????????????????????????????????????????????????
??????
???·???
??????????????????
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