khwang0 / 2018F-COMP3111

19 stars 13 forks source link

[Basic 6] Test #100

Open zachan-dev opened 5 years ago

zachan-dev commented 5 years ago

I cannot test Controller methods even though I place my logical part as an individual function as exception is thrown, so where should I put the test cases? Inside the controller or still in the test folder? Thanks.

comp3111ta commented 5 years ago

I am not sure why. Your test code should be insider your test folder. Your logic part should not contain any javafx component or otherwise it will be nullpointer exception.