Skip to content

Conversation

@KirillTopchyCtco
Copy link
Collaborator

As i do not have access to Docker, I have changed tests to work with local mongo db instance on port 27017

@github-actions
Copy link

github-actions bot commented Oct 13, 2025

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 750da21.

♻️ This comment has been updated with latest results.

.getAllTodos()
.stream()
.filter(todo -> !todo.completed())
.toList();
Copy link
Collaborator

@vchekushin-ctco vchekushin-ctco Oct 13, 2025

Choose a reason for hiding this comment

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

As well as we need only count, you can calculate it directly in the stream

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

.filter(todo -> !todo.completed())
.toList();

return "Hello from Spring! You have " + activeTodos.size() + " open tasks.";
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is ok, but for the sake of tutorial, use String.format here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

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