Skip to content

Commit 12d1ae8

Browse files
committed
Update integration test
1 parent 520f087 commit 12d1ae8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/embabel/template/agent/WriteAndReviewAgentIntegrationTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.junit.jupiter.api.Test;
77

88
import static org.junit.jupiter.api.Assertions.*;
9-
import static org.mockito.ArgumentMatchers.contains;
109

1110
/**
1211
* Use framework superclass to test the complete workflow of writing and reviewing a story.
@@ -22,11 +21,11 @@ void shouldExecuteCompleteWorkflow() {
2221
var story = new Story("AI will transform our world...");
2322
var reviewedStory = new ReviewedStory(story, "Excellent exploration of AI themes.", Personas.REVIEWER);
2423

25-
whenCreateObject(contains("Craft a short story"), Story.class)
24+
whenCreateObject(prompt -> prompt.contains("Craft a short story"), Story.class)
2625
.thenReturn(story);
2726

2827
// The second call uses generateText
29-
whenGenerateText(contains("You will be given a short story to review"))
28+
whenGenerateText(prompt -> prompt.contains("You will be given a short story to review"))
3029
.thenReturn(reviewedStory.review());
3130

3231
var invocation = AgentInvocation.create(agentPlatform, ReviewedStory.class);

0 commit comments

Comments
 (0)