So I'm in an intro to java programming course and we're doing a project where we have to use automated testing and create a code and make sure the tests all run successfully, testing each method 1 by 1. The test file is provided for us & cannot be changed. We're using Bluej for this course. Here's part of the test file I'm stuck on:
Here's all of my code:
The getRoaches and breed tests pass, but not the spray test. The error I get in bluej says:
method spray in class RoachPopulation cannot be applied to given types;
required: no arguments
reason: actual and formal argument lists differ in length
Thanks in advance for any insight you can provide.