?????????????????????Щ????
???????????? ???????[ 2012/6/11 10:36:12 ] ????????
????????????????Working Effectively with legacy Code ??????£?????????????????????t?????????????????????????
??????1????????????????????
??????2????????λ??????t???????????t???????????????????
??????3??????????????????????и????á?
??????4?????????????Щ??????????????????????????
?????????????????е??????????????????????????????????譚????????????????????????????????????????????????????????????й???????????????????????????????????????????????????????????????У????????????????????п????????????????е???????????????????????????????
?????????????????У??????????δ?????Java??CreditValidator??
public class CreditValidator
{
public CreditValidator (RGHConnection connection??
CreditMaster master??
String validatorID) {
}
Certificate validateCustomer(Customer customer) throws InvalidaCredit{
}
public class RGHConnection
{
public RGHConnection(int port?? String Name?? String passwd) throws IOException {
}
}
}
??????????????CreditValidator??????????????????RGHConnection??CreditMaster??validatorID??????RGHConnection???????????????????????????????????????????????????????????????????????
???????????CreditMaster???????Щ????????????????л??????????????????????????????????м?????????????????Щ????????????????????á?
??????????????????????????????????????????????????
public void testCreate() throws Exception {
RGHConnection connection = new RGHConnection(DEFAULT_PORT??"admin"??"rii8ii9s");
CreditMaster master = new CreditMaster ("crm2.mas"??true);
CreditValidator validator = new CreditValidator(connection??master??"a");
}
??????

???·???
??????????????????
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