ВУЗ:
Составители:
Рубрика:
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
11
7. ɍɛɟɞɢɬɟɫɶ, ɱɬɨ ɩɪɨɟɤɬ
JUnit ɩɨɹɜɢɥɫɹ ɜ ɩɨɥɟ Folder. Ɂɚɬɟɦ ɳɟɥɤɧɢɬɟ
ɧɚ Finish. ȼ ɢɧɞɢɤɚɬɨɪɟ ɯɨɞɚ ɜɵɩɨɥɧɟɧɢɹ ɢɦɩɨɪɬɚ ɡɚɦɟɬɶɬɟ, ɱɬɨ
ɢɦɩɨɪɬɢɪɭɟɦɵɟ ɪɟɫɭɪɫɵ ɤɨɦɩɢɥɢɪɭɸɬɫɹ ɩɨ ɦɟɪɟ ɬɨɝɨ, ɤɚɤ ɨɧɢ
ɢɦɩɨɪɬɢɪɭɸɬɫɹ ɜ ɪɚɛɨɱɟɟ ɦɟɫɬɨ. ɗɬɨ ɩɨɬɨɦɭ, ɱɬɨ ɧɚ ɫɬɪɚɧɢɰɟ
ɧɚɫɬɪɨɟɤ Workbench ɜɵɛɪɚɧɚ ɨɩɰɢɹ Build automatically. Ⱦɚɥɟɟ
ɩɨɥɭɱɢɬɟ ɩɪɢɝɥɚɲɟɧɢɟ ɩɟɪɟɡɚɩɢɫɚɬɶ ɮɚɣɥɵ
.classpath ɢ .project ɜ
ɩɪɨɟɤɬɟ
JUnit. ɗɬɨ ɩɨɬɨɦɭ, ɱɬɨ ɪɟɫɭɪɫ .classpath ɛɵɥ ɫɨɡɞɚɧ, ɤɨɝɞɚ
ɫɨɡɞɚɜɚɥɫɹ ɩɪɨɟɤɬ JUnit. Ɇɨɠɧɨ ɩɟɪɟɡɚɩɢɫɚɬɶ ɷɬɢ ɮɚɣɥɵ.
8. ȼ ɩɪɟɞɫɬɚɜɥɟɧɢɢ Package Explorer ɪɚɫɤɪɨɣɬɟ ɩɪɨɟɤɬ
JUnit, ɱɬɨɛɵ
ɩɨɫɦɨɬɪɟɬɶ ɩɚɤɟɬɵ
JUnit.
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
7. ɍɛɟɞɢɬɟɫɶ, ɱɬɨ ɩɪɨɟɤɬ JUnit ɩɨɹɜɢɥɫɹ ɜ ɩɨɥɟ Folder. Ɂɚɬɟɦ ɳɟɥɤɧɢɬɟ
ɧɚ Finish. ȼ ɢɧɞɢɤɚɬɨɪɟ ɯɨɞɚ ɜɵɩɨɥɧɟɧɢɹ ɢɦɩɨɪɬɚ ɡɚɦɟɬɶɬɟ, ɱɬɨ
ɢɦɩɨɪɬɢɪɭɟɦɵɟ ɪɟɫɭɪɫɵ ɤɨɦɩɢɥɢɪɭɸɬɫɹ ɩɨ ɦɟɪɟ ɬɨɝɨ, ɤɚɤ ɨɧɢ
ɢɦɩɨɪɬɢɪɭɸɬɫɹ ɜ ɪɚɛɨɱɟɟ ɦɟɫɬɨ. ɗɬɨ ɩɨɬɨɦɭ, ɱɬɨ ɧɚ ɫɬɪɚɧɢɰɟ
ɧɚɫɬɪɨɟɤ Workbench ɜɵɛɪɚɧɚ ɨɩɰɢɹ Build automatically. Ⱦɚɥɟɟ
ɩɨɥɭɱɢɬɟ ɩɪɢɝɥɚɲɟɧɢɟ ɩɟɪɟɡɚɩɢɫɚɬɶ ɮɚɣɥɵ .classpath ɢ .project ɜ
ɩɪɨɟɤɬɟ JUnit. ɗɬɨ ɩɨɬɨɦɭ, ɱɬɨ ɪɟɫɭɪɫ .classpath ɛɵɥ ɫɨɡɞɚɧ, ɤɨɝɞɚ
ɫɨɡɞɚɜɚɥɫɹ ɩɪɨɟɤɬ JUnit. Ɇɨɠɧɨ ɩɟɪɟɡɚɩɢɫɚɬɶ ɷɬɢ ɮɚɣɥɵ.
8. ȼ ɩɪɟɞɫɬɚɜɥɟɧɢɢ Package Explorer ɪɚɫɤɪɨɣɬɟ ɩɪɨɟɤɬ JUnit, ɱɬɨɛɵ
ɩɨɫɦɨɬɪɟɬɶ ɩɚɤɟɬɵ JUnit.
11
Страницы
- « первая
- ‹ предыдущая
- …
- 9
- 10
- 11
- 12
- 13
- …
- следующая ›
- последняя »
