ВУЗ:
Составители:
Рубрика:
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
9
5. ɓɟɥɤɧɢɬɟ ɧɚ OK, ɱɬɨɛɵ ɫɨɯɪɚɧɢɬɶ ɧɚɫɬɪɨɣɤɢ.
2. ɋɨɡɞɚɧɢɟ ɩɟɪɜɨɝɨ ɩɪɨɟɤɬɚ Java
ɉɪɢ ɫɨɡɞɚɧɢɢ ɩɪɨɟɤɬɚ ɛɭɞɟɦ ɢɫɩɨɥɶɡɨɜɚɬɶ JUnit ɜ ɤɚɱɟɫɬɜɟ ɩɪɨɟɤɬɚ-
ɩɪɢɦɟɪɚ. JUnit – ɦɨɞɭɥɶ ɫ ɨɬɤɪɵɬɵɦ ɤɨɞɨɦ ɞɥɹ ɬɟɫɬɢɪɨɜɚɧɢɹ ɤɚɪɤɚɫɚ ɞɥɹ
Java.
2.1. ɉɨɥɭɱɟɧɢɟ ɤɨɞɚ ɩɪɢɦɟɪɚ (JUnit)
ɋɧɚɱɚɥɚ ɧɭɠɧɨ ɜɵɝɪɭɡɢɬɶ ɢɫɯɨɞɧɵɣ ɤɨɞ JUnit.
1. Ɂɚɣɞɢɬɟ ɧɚ ɫɬɪɚɧɢɰɭ
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.ui.examples.projects/arc
hive/junit/ .
2. ȼɵɝɪɭɡɢɬɟ ɚɪɯɢɜ ɩɪɢɦɟɪɚ
junit381src.jar.
3. Ɋɚɫɩɚɤɭɣɬɟ ɫɨɞɟɪɠɢɦɨɟ Zip-ɮɚɣɥɚ ɜ ɤɚɬɚɥɨɝ, ɧɚ ɤɨɬɨɪɵɣ ɦɵ ɛɭɞɟɦ
ɫɫɵɥɚɬɶɫɹ (ɧɚɩɪɢɦɟɪ, ɋ:\Downloads).
2.2. ɋɨɡɞɚɧɢɟ ɩɪɨɟɤɬɚ
1. ȼ Eclipse ɜɵɛɟɪɢɬɟ ɩɭɧɤɬ ɦɟɧɸ File > New > Project..., ɱɬɨɛɵ
ɨɬɤɪɵɬɶ Ɇɚɫɬɟɪ New Project.
2. ȼɵɛɟɪɢɬɟ Java Project ɢ ɳɟɥɤɧɢɬɟ ɧɚ Next. ɇɚ ɫɥɟɞɭɸɳɟɣ ɫɬɪɚɧɢɰɟ
ɜɜɟɞɢɬɟ
Junit ɜ ɩɨɥɟ Project name ɢ ɳɟɥɤɧɢɬɟ ɧɚ Finish. ɇɚ
ɧɚɱɚɥɶɧɨɣ ɫɬɪɚɧɢɰɟ Welcome ɳɟɥɤɧɢɬɟ ɩɨ ɡɧɚɱɤɭ Workbench. ȼ
ɪɚɛɨɱɟɦ ɦɟɫɬɟ ɨɬɤɪɨɟɬɫɹ ɩɟɪɫɩɟɤɬɢɜɚ Java ɫ ɧɨɜɵɦ ɩɪɨɟɤɬɨɦ Java ɜ
Package Explorer. Ʉɨɝɞɚ ɩɟɪɫɩɟɤɬɢɜɚ Java ɚɤɬɢɜɧɚ, ɜ ɩɚɧɟɥɶ
ɢɧɫɬɪɭɦɟɧɬɨɜ ɪɚɛɨɱɟɝɨ ɦɟɫɬɚ ɡɚɝɪɭɠɚɸɬɫɹ ɧɨɜɵɟ ɨɩɰɢɢ ɦɟɧɸ ɢ
ɋɬɟɩɚɧɰɨɜ ȼ.Ⱥ. ɉɪɚɤɬɢɱɟɫɤɚɹ ɪɚɛɨɬɚ ɜ Eclipse 3.2
5. ɓɟɥɤɧɢɬɟ ɧɚ OK, ɱɬɨɛɵ ɫɨɯɪɚɧɢɬɶ ɧɚɫɬɪɨɣɤɢ.
2. ɋɨɡɞɚɧɢɟ ɩɟɪɜɨɝɨ ɩɪɨɟɤɬɚ Java
ɉɪɢ ɫɨɡɞɚɧɢɢ ɩɪɨɟɤɬɚ ɛɭɞɟɦ ɢɫɩɨɥɶɡɨɜɚɬɶ JUnit ɜ ɤɚɱɟɫɬɜɟ ɩɪɨɟɤɬɚ-
ɩɪɢɦɟɪɚ. JUnit – ɦɨɞɭɥɶ ɫ ɨɬɤɪɵɬɵɦ ɤɨɞɨɦ ɞɥɹ ɬɟɫɬɢɪɨɜɚɧɢɹ ɤɚɪɤɚɫɚ ɞɥɹ
Java.
2.1. ɉɨɥɭɱɟɧɢɟ ɤɨɞɚ ɩɪɢɦɟɪɚ (JUnit)
ɋɧɚɱɚɥɚ ɧɭɠɧɨ ɜɵɝɪɭɡɢɬɶ ɢɫɯɨɞɧɵɣ ɤɨɞ JUnit.
1. Ɂɚɣɞɢɬɟ ɧɚ ɫɬɪɚɧɢɰɭ
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.ui.examples.projects/arc
hive/junit/ .
2. ȼɵɝɪɭɡɢɬɟ ɚɪɯɢɜ ɩɪɢɦɟɪɚ junit381src.jar.
3. Ɋɚɫɩɚɤɭɣɬɟ ɫɨɞɟɪɠɢɦɨɟ Zip-ɮɚɣɥɚ ɜ ɤɚɬɚɥɨɝ, ɧɚ ɤɨɬɨɪɵɣ ɦɵ ɛɭɞɟɦ
ɫɫɵɥɚɬɶɫɹ (ɧɚɩɪɢɦɟɪ, ɋ:\Downloads).
2.2. ɋɨɡɞɚɧɢɟ ɩɪɨɟɤɬɚ
1. ȼ Eclipse ɜɵɛɟɪɢɬɟ ɩɭɧɤɬ ɦɟɧɸ File > New > Project..., ɱɬɨɛɵ
ɨɬɤɪɵɬɶ Ɇɚɫɬɟɪ New Project.
2. ȼɵɛɟɪɢɬɟ Java Project ɢ ɳɟɥɤɧɢɬɟ ɧɚ Next. ɇɚ ɫɥɟɞɭɸɳɟɣ ɫɬɪɚɧɢɰɟ
ɜɜɟɞɢɬɟ Junit ɜ ɩɨɥɟ Project name ɢ ɳɟɥɤɧɢɬɟ ɧɚ Finish. ɇɚ
ɧɚɱɚɥɶɧɨɣ ɫɬɪɚɧɢɰɟ Welcome ɳɟɥɤɧɢɬɟ ɩɨ ɡɧɚɱɤɭ Workbench. ȼ
ɪɚɛɨɱɟɦ ɦɟɫɬɟ ɨɬɤɪɨɟɬɫɹ ɩɟɪɫɩɟɤɬɢɜɚ Java ɫ ɧɨɜɵɦ ɩɪɨɟɤɬɨɦ Java ɜ
Package Explorer. Ʉɨɝɞɚ ɩɟɪɫɩɟɤɬɢɜɚ Java ɚɤɬɢɜɧɚ, ɜ ɩɚɧɟɥɶ
ɢɧɫɬɪɭɦɟɧɬɨɜ ɪɚɛɨɱɟɝɨ ɦɟɫɬɚ ɡɚɝɪɭɠɚɸɬɫɹ ɧɨɜɵɟ ɨɩɰɢɢ ɦɟɧɸ ɢ
9
Страницы
- « первая
- ‹ предыдущая
- …
- 7
- 8
- 9
- 10
- 11
- …
- следующая ›
- последняя »
