ВУЗ:
Составители:
Рубрика:
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
10
ɫɩɟɰɢɮɢɱɧɵɟ ɞɥɹ Java ɤɧɨɩɤɢ. ȼ ɡɚɜɢɫɢɦɨɫɬɢ ɨɬ ɬɨɝɨ, ɤɚɤɨɣ
ɪɟɞɚɤɬɨɪ ɚɤɬɢɜɟɧ, ɛɭɞɭɬ ɞɨɫɬɭɩɧɵ ɞɪɭɝɢɟ ɨɩɰɢɢ ɢ ɤɧɨɩɤɢ.
3. ȼ Package Explorer ɭɛɟɞɢɬɟɫɶ, ɱɬɨ ɜɵɛɪɚɧ ɩɪɨɟɤɬ
JUnit. ȼɵɛɟɪɢɬɟ
ɩɭɧɤɬ ɦɟɧɸ File > Import... .
4. ȼɵɛɟɪɢɬɟ General>Archive File ɢ ɳɟɥɤɧɢɬɟ ɧɚ Next.
5. ɓɟɥɤɧɢɬɟ ɧɚ ɤɧɨɩɤɟ Browse ɡɚ ɩɨɥɟɦ From archive file ɢ ɧɚɣɞɢɬɟ ɞɥɹ
ɜɵɛɨɪɚ
junit381src.jar.
ɉɪɢɦɟɱɚɧɢɟ: ɗɬɨɬ ɲɚɝ ɩɪɟɞɩɨɥɚɝɚɟɬ, ɱɬɨ ɜɵɩɨɥɧɟɧɵ ɲɚɝɢ 1-3 ɜ
ɩɪɟɞɵɞɭɳɟɦ ɪɚɡɞɟɥɟ.
6. ȼ Ɇɚɫɬɟɪɟ Import ɩɨɞ ɫɩɢɫɤɨɦ ɢɟɪɚɪɯɢɢ ɳɟɥɤɧɢɬɟ ɧɚ Select All.
Ɇɨɠɧɨ ɪɚɫɤɪɵɬɶ ɢ ɜɵɛɪɚɬɶ ɷɥɟɦɟɧɬɵ ɜ ɤɚɬɚɥɨɝɟ
junit ɧɚ ɥɟɜɨɣ
ɩɚɧɟɥɢ, ɱɬɨɛɵ ɩɪɨɫɦɨɬɪɟɬɶ ɨɬɞɟɥɶɧɵɟ ɪɟɫɭɪɫɵ, ɤɨɬɨɪɵɟ ɛɵɥɢ
ɢɦɩɨɪɬɢɪɨɜɚɧɵ, ɧɚ ɩɪɚɜɨɣ ɩɚɧɟɥɢ.
ɉɪɢɦɟɱɚɧɢɟ: ɇɟ ɨɬɦɟɧɹɣɬɟ ɩɪɢ ɷɬɨɦ ɜɵɛɨɪ ɧɢɤɚɤɢɯ ɪɟɫɭɪɫɨɜ ɜ
ɤɚɬɚɥɨɝɟ junit. ȼɚɦ ɩɨɧɚɞɨɛɹɬɫɹ ɜɫɟ ɷɬɢ ɪɟɫɭɪɫɵ.
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
ɫɩɟɰɢɮɢɱɧɵɟ ɞɥɹ Java ɤɧɨɩɤɢ. ȼ ɡɚɜɢɫɢɦɨɫɬɢ ɨɬ ɬɨɝɨ, ɤɚɤɨɣ
ɪɟɞɚɤɬɨɪ ɚɤɬɢɜɟɧ, ɛɭɞɭɬ ɞɨɫɬɭɩɧɵ ɞɪɭɝɢɟ ɨɩɰɢɢ ɢ ɤɧɨɩɤɢ.
3. ȼ Package Explorer ɭɛɟɞɢɬɟɫɶ, ɱɬɨ ɜɵɛɪɚɧ ɩɪɨɟɤɬ JUnit. ȼɵɛɟɪɢɬɟ
ɩɭɧɤɬ ɦɟɧɸ File > Import... .
4. ȼɵɛɟɪɢɬɟ General>Archive File ɢ ɳɟɥɤɧɢɬɟ ɧɚ Next.
5. ɓɟɥɤɧɢɬɟ ɧɚ ɤɧɨɩɤɟ Browse ɡɚ ɩɨɥɟɦ From archive file ɢ ɧɚɣɞɢɬɟ ɞɥɹ
ɜɵɛɨɪɚ junit381src.jar.
ɉɪɢɦɟɱɚɧɢɟ: ɗɬɨɬ ɲɚɝ ɩɪɟɞɩɨɥɚɝɚɟɬ, ɱɬɨ ɜɵɩɨɥɧɟɧɵ ɲɚɝɢ 1-3 ɜ
ɩɪɟɞɵɞɭɳɟɦ ɪɚɡɞɟɥɟ.
6. ȼ Ɇɚɫɬɟɪɟ Import ɩɨɞ ɫɩɢɫɤɨɦ ɢɟɪɚɪɯɢɢ ɳɟɥɤɧɢɬɟ ɧɚ Select All.
Ɇɨɠɧɨ ɪɚɫɤɪɵɬɶ ɢ ɜɵɛɪɚɬɶ ɷɥɟɦɟɧɬɵ ɜ ɤɚɬɚɥɨɝɟ junit ɧɚ ɥɟɜɨɣ
ɩɚɧɟɥɢ, ɱɬɨɛɵ ɩɪɨɫɦɨɬɪɟɬɶ ɨɬɞɟɥɶɧɵɟ ɪɟɫɭɪɫɵ, ɤɨɬɨɪɵɟ ɛɵɥɢ
ɢɦɩɨɪɬɢɪɨɜɚɧɵ, ɧɚ ɩɪɚɜɨɣ ɩɚɧɟɥɢ.
ɉɪɢɦɟɱɚɧɢɟ: ɇɟ ɨɬɦɟɧɹɣɬɟ ɩɪɢ ɷɬɨɦ ɜɵɛɨɪ ɧɢɤɚɤɢɯ ɪɟɫɭɪɫɨɜ ɜ
ɤɚɬɚɥɨɝɟ junit. ȼɚɦ ɩɨɧɚɞɨɛɹɬɫɹ ɜɫɟ ɷɬɢ ɪɟɫɭɪɫɵ.
10
Страницы
- « первая
- ‹ предыдущая
- …
- 8
- 9
- 10
- 11
- 12
- …
- следующая ›
- последняя »
