Tests for 5 classes (Issue #29)#1573
Merged
alexheifetz merged 15 commits intoembabel:mainfrom Apr 6, 2026
Merged
Conversation
Signed-off-by: drhiidden <druiz264@gmail.com>
Signed-off-by: drhiidden <druiz264@gmail.com>
Signed-off-by: drhiidden <druiz264@gmail.com>
Signed-off-by: drhiidden <druiz264@gmail.com>
Signed-off-by: drhiidden <druiz264@gmail.com>
Signed-off-by: drhiidden <druiz264@gmail.com>
simeshev
requested changes
Apr 5, 2026
Collaborator
simeshev
left a comment
There was a problem hiding this comment.
- Copyright and licence headers disappeared. Please make sure headers are present.
StreamingPromptRunnerBuilderTestis no longer using@ExtendWith(MockitoExtension.class)and@Mock- any particular reason?- Add comments
// Arrange,// Act,// Assertto the appropriate sections of the tests.
simeshev
reviewed
Apr 5, 2026
...gent-api/src/test/java/com/embabel/agent/api/streaming/StreamingPromptRunnerBuilderTest.java
Outdated
Show resolved
Hide resolved
simeshev
reviewed
Apr 5, 2026
embabel-agent-api/src/test/java/com/embabel/agent/api/models/GeminiModelsTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: drhiidden <druiz264@gmail.com>
bfc7d19 to
3b51138
Compare
Signed-off-by: drhiidden <druiz264@gmail.com>
simeshev
requested changes
Apr 5, 2026
embabel-agent-api/src/test/java/com/embabel/agent/core/hitl/WaitForTest.java
Outdated
Show resolved
Hide resolved
embabel-agent-api/src/test/java/com/embabel/agent/core/hitl/WaitForTest.java
Outdated
Show resolved
Hide resolved
embabel-agent-api/src/test/java/com/embabel/agent/api/models/GeminiModelsTest.java
Outdated
Show resolved
Hide resolved
...ava/com/embabel/agent/observability/observation/NonEmbabelTracingObservationHandlerTest.java
Outdated
Show resolved
Hide resolved
…rtions Signed-off-by: drhiidden <druiz264@gmail.com>
03dc152 to
017e4de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added unit tests for utility classes, builders, and handlers to improve test coverage.
Files
GeminiModels - 7 tests, 96 lines
Model constants for Gemini 2.0/2.5/3.0/3.1. Uses reflection for the private constructor. 100% covered.
StreamingPromptRunnerBuilder - 6 tests, 156 lines
Builder record for streaming prompt execution. Tests exception handling and field validation. 98% (record internals unreachable).
ObservationKeys - 11 tests, 155 lines
Key formatters for observation tracking. Empty strings, special chars, nulls all handled. 100%.
NonEmbabelTracingObservationHandler - 4 tests, 115 lines
Context filter for tracing. Standard contexts pass, Embabel contexts are excluded. 100%.
WaitFor - 11 tests, 176 lines
Java HITL sugar for
WaitKt. Tests delegation tofromForm(),confirm(),waitFor(). Null handling and exception types. 100%.Updates (017e4de)
Applied review feedback:
assertNotNullbeforeassertEquals(21 lines cleaned)confirmationThrowsOnNullWhat→confirmationThrowsOnNullPayloadCustomObservationContextcreatesHandlerWithTracerNet: -43 lines of unnecessary code.
Standards
@DisplayNameon all tests, camelCase names@ExtendWithin observability,private finalin api)39 tests pass.
Run
Thanks for reviewing!