Skip to content

Conversation

tcheeric
Copy link
Owner

Summary

  • initialize SpringWebSocketClient in setup method
  • remove unused import

Testing

  • mvn -q verify (fails: Could not find a valid Docker environment)

https://chatgpt.com/codex/tasks/task_b_688ac7315a188331a1d09de7db256b2e

Copy link
Contributor

@Copilot Copilot AI left a comment

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 refactors the integration test client setup by moving WebSocket client initialization from constructors to JUnit setup methods and removes an unused import.

  • Converts WebSocket client initialization from constructor-based to @BeforeEach setup method pattern
  • Changes springWebSocketClient field from final to mutable to support setup method initialization
  • Removes unused GenericTag import from ApiNIP99EventIT

Reviewed Changes

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

File Description
nostr-java-api/src/test/java/nostr/api/integration/ApiNIP99EventIT.java Refactors WebSocket client setup and removes unused import
nostr-java-api/src/test/java/nostr/api/integration/ApiNIP52EventIT.java Refactors WebSocket client setup using BeforeEach pattern
Comments suppressed due to low confidence (2)

nostr-java-api/src/test/java/nostr/api/integration/ApiNIP99EventIT.java:60

  • [nitpick] The method name 'setup' is ambiguous and doesn't follow typical JUnit naming conventions. Consider renaming to 'setUp' or 'initializeWebSocketClient' for better clarity.
  void setup() {

nostr-java-api/src/test/java/nostr/api/integration/ApiNIP52EventIT.java:32

  • [nitpick] The method name 'setup' is ambiguous and doesn't follow typical JUnit naming conventions. Consider renaming to 'setUp' or 'initializeWebSocketClient' for better clarity.
  void setup() {

@tcheeric tcheeric merged commit 9348525 into develop Jul 31, 2025
@tcheeric tcheeric deleted the kmv588-codex/refactor-apinip52eventit-and-apinip99eventit branch July 31, 2025 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant