ВУЗ:
Составители:
Рубрика:
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
28
8. ȼɵɛɟɪɢɬɟ ɮɥɚɠɨɤ Constructors from superclass.
9. ɓɟɥɤɧɢɬɟ ɧɚ Finish, ɱɬɨɛɵ ɫɨɡɞɚɬɶ ɧɨɜɵɣ ɤɥɚɫɫ.
10. ȼ ɪɟɞɚɤɬɨɪɟ ɨɬɤɪɵɜɚɟɬɫɹ ɧɨɜɵɣ ɮɚɣɥ. Ɉɧ ɫɨɞɟɪɠɢɬ ɧɨɜɵɣ ɤɥɚɫɫ,
ɤɨɧɫɬɪɭɤɬɨɪ ɢ ɤɨɦɦɟɧɬɚɪɢɢ. Ɉɩɰɢɢ ɞɥɹ ɫɨɡɞɚɧɢɹ ɢ
ɤɨɧɮɢɝɭɪɢɪɨɜɚɧɢɹ ɝɟɧɟɪɢɪɭɟɦɵɯ ɤɨɦɦɟɧɬɚɪɢɟɜ ɦɨɠɧɨ ɜɵɛɪɚɬɶ ɜ
ɧɚɫɬɪɨɣɤɚɯ Java Window > Preferences > Java > Code Style > Code
Templates.
11. ȼ ɩɪɟɞɫɬɚɜɥɟɧɢɢ Outline ɜɵɛɟɪɢɬɟ ɧɨɜɵɣ ɤɥɚɫɫ
MyTestCase.
Ɉɬɤɪɨɣɬɟ ɤɨɧɬɟɤɫɬɧɨɟ ɦɟɧɸ ɢ ɜɵɛɟɪɢɬɟ Source >
Override/Implement Methods...
12. ȼ ɞɢɚɥɨɝɟ Override Methods ɜɵɛɟɪɢɬɟ
setUp() ɢ tearDown() ɢ
ɳɟɥɤɧɢɬɟ ɧɚ OK. ȼ ɤɥɚɫɫ ɞɨɛɚɜɥɹɸɬɫɹ ɞɜɚ ɦɟɬɨɞɚ.
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
8. ȼɵɛɟɪɢɬɟ ɮɥɚɠɨɤ Constructors from superclass.
9. ɓɟɥɤɧɢɬɟ ɧɚ Finish, ɱɬɨɛɵ ɫɨɡɞɚɬɶ ɧɨɜɵɣ ɤɥɚɫɫ.
10. ȼ ɪɟɞɚɤɬɨɪɟ ɨɬɤɪɵɜɚɟɬɫɹ ɧɨɜɵɣ ɮɚɣɥ. Ɉɧ ɫɨɞɟɪɠɢɬ ɧɨɜɵɣ ɤɥɚɫɫ,
ɤɨɧɫɬɪɭɤɬɨɪ ɢ ɤɨɦɦɟɧɬɚɪɢɢ. Ɉɩɰɢɢ ɞɥɹ ɫɨɡɞɚɧɢɹ ɢ
ɤɨɧɮɢɝɭɪɢɪɨɜɚɧɢɹ ɝɟɧɟɪɢɪɭɟɦɵɯ ɤɨɦɦɟɧɬɚɪɢɟɜ ɦɨɠɧɨ ɜɵɛɪɚɬɶ ɜ
ɧɚɫɬɪɨɣɤɚɯ Java Window > Preferences > Java > Code Style > Code
Templates.
11. ȼ ɩɪɟɞɫɬɚɜɥɟɧɢɢ Outline ɜɵɛɟɪɢɬɟ ɧɨɜɵɣ ɤɥɚɫɫ MyTestCase.
Ɉɬɤɪɨɣɬɟ ɤɨɧɬɟɤɫɬɧɨɟ ɦɟɧɸ ɢ ɜɵɛɟɪɢɬɟ Source >
Override/Implement Methods...
12. ȼ ɞɢɚɥɨɝɟ Override Methods ɜɵɛɟɪɢɬɟ setUp() ɢ tearDown() ɢ
ɳɟɥɤɧɢɬɟ ɧɚ OK. ȼ ɤɥɚɫɫ ɞɨɛɚɜɥɹɸɬɫɹ ɞɜɚ ɦɟɬɨɞɚ.
28
Страницы
- « первая
- ‹ предыдущая
- …
- 26
- 27
- 28
- 29
- 30
- …
- следующая ›
- последняя »
