Cov txheej txheem:

Dab noj hnub & JUnit Teeb: 11 Kauj Ruam
Dab noj hnub & JUnit Teeb: 11 Kauj Ruam

Video: Dab noj hnub & JUnit Teeb: 11 Kauj Ruam

Video: Dab noj hnub & JUnit Teeb: 11 Kauj Ruam
Video: Yuav txiv twm koj neej thiaj tsis kawg. 10/11/2017 2024, Kaum ib hlis
Anonim
Dab noj hnub & JUnit Teeb
Dab noj hnub & JUnit Teeb

Yam uas koj xav tau:

  • Lub computer w/ dab noj hnub IDE
  • Java cov ntaub ntawv nrog cov haujlwm/txheej txheem uas koj xav sim
  • Cov ntawv xeem nrog JUnit kev xeem kom ua haujlwm ntawm koj lub luag haujlwm

Kauj Ruam 1: Rub Ob Daim Ntawv Muab Ua Ntej Ua Ntej Tus Kheej Ntawm Phau Ntawv Qhia no

Nyem rau cov kab ntawv sib txuas hauv cov lus qhia txhawm rau rub ob daim ntawv tsim nyog ua ntej koj txuas ntxiv phau ntawv qhia.

Kauj Ruam 2: Qhib Eclipse IDE. Siv Qhov Chaw Ua Haujlwm Default

Qhib Eclipse IDE. Siv Qhov Chaw Ua Haujlwm Default
Qhib Eclipse IDE. Siv Qhov Chaw Ua Haujlwm Default

Kauj Ruam 3: Tsim Txoj Haujlwm Tshiab hu ua Csc301

Tsim Txoj Haujlwm Tshiab hu ua Csc301
Tsim Txoj Haujlwm Tshiab hu ua Csc301

Mus rau Cov Ntaub Ntawv> Tshiab> Java Project, tom qab ntawd lub npe yog csc301 & txhua qhov kev teeb tsa ua ntej.

Kauj Ruam 4: Tsim pob "hw2"

Tsim cov
Tsim cov
Tsim cov
Tsim cov

Nthuav csc301 qhov project nplaub tshev thiab tom qab ntawd hauv src nplaub tshev, tsim "pob" hw2. Ua qhov no los ntawm txhaj rau sab xis "src" nplaub tshev hauv lub qhov rai tshawb nrhiav thiab xaiv "Tshiab"> "Pob" thiab siv "hw2" raws li lub npe.

Kauj ruam 5: Xaiv cov ntaub ntawv koj rub tawm thiab theej thiab muab tshuaj txhuam rau hauv dab noj hnub

Xaiv ob daim ntawv uas koj rub tawm thiab luam thiab muab tso rau hauv pob "hw2" hauv Dab noj hnub. Qhov no tseem tuaj yeem ua tiav los ntawm kev yooj yim rub thiab xa cov ntawv xa mus rau hauv pob "hw2".

Kauj Ruam 6: Qhib Koj Cov Ntawv Teev Npe (csc301 hauv Duab)

Highlight Koj Cov Ntawv Teev Npe (csc301 hauv Duab)
Highlight Koj Cov Ntawv Teev Npe (csc301 hauv Duab)

Kauj Ruam 7: Txoj Cai Nyem rau ntawm Project Folder & Qhib "Tsim Txoj Hauv" los xaiv "Ntxiv Cov Tsev Qhua."

Txoj Cai Nyem rau ntawm Daim Ntawv Teev Npe & Qhib "Tsim Txoj Kev" los xaiv "Ntxiv Cov Tsev Qhua."
Txoj Cai Nyem rau ntawm Daim Ntawv Teev Npe & Qhib "Tsim Txoj Kev" los xaiv "Ntxiv Cov Tsev Qhua."

Kauj Ruam 8: Xaiv "JUnit" Thaum lub "Ntxiv Lub Tsev Qiv Ntawv" Qhov rai qhib thiab nyem "Tom ntej."

Xaiv "JUnit" Thaum lub "Ntxiv Lub Tsev Qiv Ntawv" Qhov rai qhib thiab nyem "Tom ntej."
Xaiv "JUnit" Thaum lub "Ntxiv Lub Tsev Qiv Ntawv" Qhov rai qhib thiab nyem "Tom ntej."

Kauj Ruam 9: Xaiv "JUnit 4" Los ntawm Lub Thawv Dropdown Thaum "JUnit Library" Qhov rai qhib thiab nyem "Ua tiav" ntxiv JUnit rau Koj Txoj Haujlwm

Xaiv "JUnit 4" Los ntawm Lub Thawv Dropdown Thaum "JUnit Library" Window qhib thiab nyem "Ua tiav" ntxiv JUnit rau koj Txoj Haujlwm
Xaiv "JUnit 4" Los ntawm Lub Thawv Dropdown Thaum "JUnit Library" Window qhib thiab nyem "Ua tiav" ntxiv JUnit rau koj Txoj Haujlwm

Kauj Ruam 10: Khiav Koj Cov Ntawv Xeem JUnit kom paub tseeb tias koj qhov kev xeem ua haujlwm tau zoo tom qab koj teeb tsa JUnit

Khiav Koj Cov Ntawv Xeem JUnit kom paub tseeb tias koj qhov kev xeem ua haujlwm tau zoo tom qab koj teeb tsa JUnit
Khiav Koj Cov Ntawv Xeem JUnit kom paub tseeb tias koj qhov kev xeem ua haujlwm tau zoo tom qab koj teeb tsa JUnit

Koj yuav tsum pom lub qhov rai qhib rau JUnit nyob rau sab saud sab laug ntawm Eclipse qhia koj qhov kev ntsuas JUnit tom qab koj khiav cov ntawv.

Kauj Ruam 11: Koj Tau Ua tiav Koj Cov Dab Neeg & JUnit Teeb

Nrog koj zoo siab, tam sim no koj tau ua tiav nrog koj teeb tsa JUnit rau kev sim Java! Tam sim no koj tuaj yeem tsim koj tus kheej JUnit cov ntawv xeem thiab ntsuas koj cov cai rau ntau kis!

Yog tias koj qhov kev xeem tseem tsis ua haujlwm raug, nco ntsoov tias cov ntawv ua haujlwm & ntawv xeem tau hu rau qhov raug. Ntawm theem 9, yog tias muaj qhov ua yuam kev tshwm sim qhia rau koj tias JUnit twb tau ntxiv rau koj qhov Eclipse project, tom qab ntawd tsis suav qhov ua yuam kev & seem ntawm phau ntawv qhia no, JUnit twb tau teeb tsa lawm! Thaum qhov no raug txheeb xyuas, xyuas kom koj tau ua raws txhua kauj ruam hauv phau ntawv qhia no kom raug. Thaum kawg, koj txoj haujlwm Java yuav tsum tam sim no tuaj yeem ua JUnit xeem ntawm txhua lub luag haujlwm koj sau!

Pom zoo: