Testing
testing1TestingOverview
- Path
- pkg14testing/src/main/java/pkg14testing/testing1TestingOverview.java
- Package
- pkg14testing
- Study order
- 1
- Run
- Maven module
- Command
- mvn test -f pkg14testing/pom.xml
There is no in-browser runner. This is the file from the curriculum, unchanged.
1package pkg14testing;2 3/*4 * testing1TestingOverview.java5 * ----------------------------6 * Testing fundamentals: why test, pyramid, and what this Maven module covers.7 *8 * Run: mvn -q exec:java -f pkg14testing/pom.xml9 * Test: mvn -q test -f pkg14testing/pom.xml10 */11public class testing1TestingOverview {12 13 public static void main(String[] args) {14 System.out.println("Testing pyramid:");15 System.out.println(" Unit (many) — fast, isolated, JUnit + Mockito");16 System.out.println(" Integration — DB/API with Testcontainers (SpringMastery)");17 System.out.println(" E2E (few) — full system paths");18 19 System.out.println("\nThis module demonstrates:");20 System.out.println(" JUnit5BasicsTest — assertions, lifecycle, @DisplayName");21 System.out.println(" MockitoDemoTest — mocks, stubs, verify");22 System.out.println(" AssertJDemoTest — fluent assertions");23 System.out.println(" ParameterizedTestDemo — @ParameterizedTest");24 System.out.println(" TddCalculatorTest — red-green-refactor TDD");25 System.out.println(" PropertyBasedDemoTest — jqwik property-based");26 27 System.out.println("\nRun all: mvn test -f pkg14testing/pom.xml");28 }29}