Skip to content

Add practical Spring Boot demo scenarios - #8

Merged
AbaSheger merged 1 commit into
AbaSheger:mainfrom
wipheg:main
Jun 6, 2026
Merged

AbaSheger merged 1 commit into
AbaSheger:mainfrom
wipheg:main

Conversation

@wipheg

@wipheg wipheg commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Added three practical Spring Boot demo scenario templates:
    • inventory management demo
    • learning management demo
    • event registration demo
  • Updated existing scenario service/controller tests for the expanded scenario catalog.

Testing

  • mvn -B -ntp clean verify

Summary by CodeRabbit

  • New Features
    • Added three new scenario templates: Inventory Management, Learning Management, and Event Registration. These templates are now discoverable and available for selection, expanding the library of demo scenarios.

@coderabbitai

coderabbitai Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b218a828-cdab-4313-8e11-dfa60e7086f8

📥 Commits

Reviewing files that changed from the base of the PR and between f8e2952 and a3c2d80.

📒 Files selected for processing (3)
  • terubase-spring-boot-starter/src/main/java/com/terubase/starter/ScenarioTemplateService.java
  • terubase-spring-boot-starter/src/test/java/com/terubase/starter/ScenarioTemplateServiceTest.java
  • terubase-spring-boot-starter/src/test/java/com/terubase/starter/TeruBaseScenarioControllerTest.java

📝 Walkthrough

Walkthrough

Three new scenario templates are added to the service: inventory-management-demo, learning-management-demo, and event-registration-demo. Unit and integration tests are updated to assert the expanded template dataset now contains 10 scenarios instead of 7.

Changes

Scenario Template Dataset Expansion

Layer / File(s) Summary
Add new scenario templates and verify in tests
terubase-spring-boot-starter/src/main/java/com/terubase/starter/ScenarioTemplateService.java, terubase-spring-boot-starter/src/test/java/com/terubase/starter/ScenarioTemplateServiceTest.java, terubase-spring-boot-starter/src/test/java/com/terubase/starter/TeruBaseScenarioControllerTest.java
Three new ScenarioTemplate entries are added to the static TEMPLATES list, each defining metadata (ID, title, description, prompt, keywords, entity types). Test assertions in ScenarioTemplateServiceTest verify all three new IDs are present via containsExactly(), and TeruBaseScenarioControllerTest assertions verify the controller endpoint now returns 10 scenarios with the correct first and last entries.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related issues

Poem

A rabbit hops through template lands, 🐰
Adding three new demo strands,
Inventory, learning, events bright—
Tests all passing, everything right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Add practical Spring Boot demo scenarios' directly summarizes the main change: adding three new scenario templates (inventory management, learning management, and event registration demos) to the ScenarioTemplateService.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands TeruBase’s built-in Spring Boot “scenario template” catalog by adding three new practical demo scenarios, and updates the existing tests to reflect the expanded catalog returned by GET /terubase/api/scenarios.

Changes:

  • Added three new scenario templates: inventory management, learning management, and event registration.
  • Updated controller test expectations for the new total scenario count and last index.
  • Updated service test expectations for the new scenario ID list (including ordering).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
terubase-spring-boot-starter/src/test/java/com/terubase/starter/TeruBaseScenarioControllerTest.java Updates scenario list length and last-index assertions to match the expanded catalog.
terubase-spring-boot-starter/src/test/java/com/terubase/starter/ScenarioTemplateServiceTest.java Extends the expected built-in scenario ID sequence to include the three new templates.
terubase-spring-boot-starter/src/main/java/com/terubase/starter/ScenarioTemplateService.java Adds three new ScenarioTemplate entries to the built-in catalog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AbaSheger

Copy link
Copy Markdown
Owner

@wipheg Thanks for the contribution. The scenarios and test updates look good.

@AbaSheger
AbaSheger merged commit c6a6e7e into AbaSheger:main Jun 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants