JUnit 5, Maven, Gradle ו-GitJUnit 5, Maven, Gradle & Git
בדיקות אוטומטיות עם JUnit 5, פרויקט Maven או Gradle, ניהול תלויות, ו-Git ו-GitHub.
Automated tests with JUnit 5, a Maven or Gradle project, dependencies, and Git and GitHub.
בסוף המפגש תדעוBy the end you will
- לכתוב בדיקות יחידה במבנה Arrange, Act, Assert, ולתת להן שמות שמסבירים מה נבדקWrite unit tests as Arrange, Act, Assert, with names that explain what's checked
- לקרוא ולכתוב בדיקת JUnit 5:
@Test,@BeforeEach,assertEquals,assertThrowsRead and write a JUnit 5 test:@Test,@BeforeEach,assertEquals,assertThrows - להכיר פרויקט Maven או Gradle: מבנה תיקיות, תלויות,
mvn testKnow a Maven or Gradle project: the folder layout, dependencies,mvn test - לשמור היסטוריה ב-Git ולהעלות ל-GitHubKeep history in Git and push to GitHub
לפני שמתחיליםBefore you start
זמן: Time: כ-3 שעות (כולל הפסקה)About 3 hours (with a break)
דרישות קודמות: Prerequisites: מפגשים 1–29Sessions 1–29
מה צריך: You need: מחשב עם JDK 21 ו-IntelliJ IDEA מותקנים (מפגש 1). אפשר גם רק דפדפן: כל הקוד מוצג עם הפלט האמיתי שלו, ורץ גם כאן כשהדפדפן מאפשר.A computer with JDK 21 and IntelliJ IDEA (session 1). A browser alone also works: every example shows its real output, and runs here when the browser allows it.
סדר המפגשSession plan
- 0:00פתיחה וחזרה קצרהOpening and quick review
- 0:10מונחיםTerms
- 0:40בדיקה היא קוד שבודק קודA test is code that checks code
- 1:10הפסקהBreak
- 1:20אותו דבר ב-JUnit 5The same in JUnit 5
- 1:50פרויקט מדףShelf project
- 2:20תרגולPractice
- 2:50סיכום ושאלותWrap-up and questions
בדיקות אוטומטיות עם JUnit 5, פרויקט Maven או Gradle, ניהול תלויות, ו-Git ו-GitHub. בסוף המפגש מוסיפים צעד לפרויקט המלווה.
Automated tests with JUnit 5, a Maven or Gradle project, dependencies, and Git and GitHub. At the end we add a step to the companion project.
הפרויקט המלווהThe companion project: מדף: ספרייה אישיתShelf: a personal library
פרויקט אחד שגדל איתכם לאורך כל הקורס: מתחיל כתוכנית של 10 שורות, הופך למחלקות, ל-interfaces ול-streams, מייבא ספרים במקביל עם Threads, ונגמר כ-REST API.
One project that grows with you through the whole course: it starts as a 10-line program, becomes classes, interfaces and streams, imports books in parallel with threads, and ends as a REST API.
השלב של היוםToday's step בדיקות JUnit למדף ופרויקט MavenJUnit tests for the shelf and a Maven project. לתרגילGo to the exercise