Skip to content

Commit a5f8161

Browse files
stdenclaude
andcommitted
Add Cucumber BDD testing with JUnit 5 and comprehensive database configuration
## Summary - Migrated from JUnit 4 to JUnit 5 (Jupiter 5.11.4) - Added Cucumber BDD framework (7.23.0) with Russian-language feature files - Implemented comprehensive database configuration system - Created extensive documentation and tutorials ## Changes ### BDD Testing - Added Cucumber dependencies and JUnit Platform Suite integration - Created Russian-language feature files for student management and database connection testing - Implemented step definitions with English method names and Russian annotations - Created RunCucumberTest.java with JUnit 5 @suite configuration ### Database Configuration - Implemented three-tier configuration: environment variables → db.properties → defaults - Added properties-maven-plugin for loading db.properties - Created db.properties.example template - Updated step definitions to use environment variable fallbacks ### Documentation - Created BDD_TESTING.md - comprehensive guide to Cucumber BDD - Created DATABASE_CONFIG.md - detailed database configuration guide - Created JDBC_TUTORIAL.md - complete JDBC tutorial - Updated POSTGRESQL_TUTORIAL.md and README.md with new content ### JUnit 5 Migration - Upgraded all JUnit dependencies to 5.11.4 - Updated assertion method signatures (assertEquals parameter order) - Replaced @RunWith with @suite and @IncludeEngines - Fixed duplicate junit-jupiter-api dependency - Added JaCoCo plugin version (0.8.12) ### Test Code - Created PostgresJDBCPreparedStatement.java - SQL injection protection examples - Created PostgresJDBCWithPool.java - HikariCP connection pool examples - Updated PostgresJDBC.java with improved structure ### Cleanup - Removed .idea directory (IDE files) - Removed 000_intro.md (moved to README) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0713855 commit a5f8161

46 files changed

Lines changed: 3552 additions & 1835 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

000_intro.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

01_JDBC/.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Переменные окружения для подключения к базе данных
2+
# Этот файл не должен попадать в систему контроля версий
3+
4+
DB_URL=jdbc:postgresql://localhost:5432/postgres
5+
DB_USER=postgres
6+
DB_PASSWORD=123

01_JDBC/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

01_JDBC/.idea/artifacts/SpringMVC_war.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

01_JDBC/.idea/artifacts/SpringMVC_war_exploded.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

01_JDBC/.idea/compiler.xml

Lines changed: 0 additions & 33 deletions
This file was deleted.

01_JDBC/.idea/copyright/profiles_settings.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

01_JDBC/.idea/encodings.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

01_JDBC/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

01_JDBC/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)