Try them out with JetBrains AI Assistant or JetBrains Junie coding agent.
- Open file
FizzBuzzTest
- Open AI Assistant chat
- Ask AI Assistant: "Implement code that passes the tests"
- Make sure the file is attached to the prompt
- Copy the provided code to the right location
- Run tests
- Ask Junie: "Implement code that passes the tests in FizzBuzzTest.java"
- Click "Run tests" when Junie asks to run the tests
- Open file
CalculatorTest
- Open AI Assistant chat
- Ask AI Assistant: "Implement code that passes the tests"
- Make sure the file is attached to the prompt
- Copy the provided code to the right location
- Run tests Note: Since this example requires multiple classes/files to be created, AI Assistant isn't always able to solve it.
- Ask Junie: "Implement code that passes the tests in CalculatorTest.java"
- Click "Run tests" when Junie asks to run the tests