Working setup plus one small application per way of getting it wrong (no @Primary, @Primary only, url vs jdbc-url, wrong repository package, Flyway auto-configuration), plain vs named @Transactional, and ChainedTransactionManager with a failing commit. Transcripts are written by the tests. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
20 lines
493 B
Bash
Executable File
20 lines
493 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file under output/.
|
|
#
|
|
# ./scripts/run-all.sh
|
|
#
|
|
# Needs a JDK 25 and Maven 3.9. Transcripts 01-09 are written by the test suite, so each figure in the
|
|
# article is an assertion that fails the build if it stops being true. 10-12 come from javap and javac.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "== test suite (transcripts 01-09)"
|
|
mvn -B test
|
|
|
|
echo "== facts read from jars (10-12)"
|
|
./scripts/capture-facts.sh
|
|
|
|
echo
|
|
echo "output:"
|
|
ls -1 output
|