Change the Main file so that test() returns 5.
- Login to https://github.com, and under Repositories tab, click New
- Under Repository template, type saronson/labTemplate
- Name your repository and click Create repository
- Under Settings tab, click on the button to make it a Template repository
- Copy the URL to this repository
- In Bluej, under Tools-->Team-->Checkout Project, click on the Git tab
- Paste the URL into Repository URI
- Fill in Personal information and click OK
- Pick a Name for your project and a Location and click OK
- In this Bluej project that was just created, make whatever changes you want
- When you are finished, click on Tools-->Team-->Commit/Push Files to Repository
- Type a Commit comment and click on Commit
- Click on Push
Your updates should now be saved to your github repository.
- In your classroom, choose ... and select Create Assignment
- Type an Assignment title and click Continue
- In Select a repository dropdown, type your repository
- In Select an online IDE, choose Repl.it and then click Continue
- Under Add test dropdown, select Run Java
- Under Test name, type Test JUnit or whatever you want to call your test
- Under Setup command, type: javac -cp junit4.jar:. *.java
- Under run command, type: java -cp junit4.jar:. TestMain
- Click on Save test case
- Click on Enable feedback pull requests
- Click on Create assignment
- Copy the URL for the assignment and distribute it to each student.
They can now edit this assignment in https://repl.it or use Bluej. When they commit the assignment, it will autograde using the TestMain program.