DE Mastery GitHub

Java for data engineers · JVM-06

Testing and debugging

From your world. dbt tests + a Spark pipeline integration test, but as JUnit/AssertJ and reading JVM stack traces

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz JVM-06.

1In a Java stack trace with nested Caused by: sections, where is the root cause?
2Which AssertJ assertion correctly tests that a method throws IllegalArgumentException?
3Why compare doubles with isCloseTo(v, within(1e-9)) rather than isEqualTo(v)?
4What does Testcontainers provide for a JVM integration test, and what does it require?
5Per this platform's rules, how must a graded Kafka exercise work without Docker?
6Why should an integration test poll for the expected records with a deadline instead of calling Thread.sleep(2000)?
7A trace ends with ... 3 more. What does that mean?