????1.  ?????????????????????????????????????
???????????????????Code?????????????????????????????????????????????????????????????????????е??
??????????????????????????????????ɡ?
????????????????????Ч????????????????????????????????
????2.  Code Test ???????
??????1??  ?????????review
???????????????????????н????????
?????????????????????????????????????????
??????2??  ????debug??????????в???
???????????????????????????????????????
?????????????1.?????debug????????в???????????У???????
????2.??debug???????????????????????????????????????
??????3??  ??з???????
??????????????????????????????????????????????????У?????÷?????????????????????bean
??????????????????????????÷????????в????
?????????
???????????????????????MyApp?????????з?????getSortList?? ?????????????List??
/**
* Created by yunmu.wgl on 2014/7/16.
*/
public class MyApp {
private List  getSortList(List<Integer> srcList){
Collections.sort(srcList);
return srcList;
}
}
????????????????????£?
/**
* Created by yunmu.wgl on 2014/7/16.
*/
public class MyAppTest {
@Test
public  void testMyApp() throws NoSuchMethodException?? InvocationTargetException?? IllegalAccessException {
Class clazz = MyApp.class;
Method sortList = clazz.getDeclaredMethod("getSortList"??List.class); //?????????????
sortList.setAccessible(true); //??з??????????
List<Integer> testList = new ArrayList<Integer>();//???????????
testList.add(1);
testList.add(3);
testList.add(2);
MyApp myApp = new MyApp(); // ??????????????????
sortList.invoke(myApp??testList); //??в??????
System.out.println(testList.toString()); //У???????
}
}