-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write unit tests #29
Comments
I was looking into this to test our GUI/ Maybe we'll just keep it simple and not test |
Feel a bit uneasy about using a library that's still in alpha. |
Would it be possible to construct fake GUI elements (TreeView/ListView etc) and test them with JUnit? |
I think that seems possible... 🤔 I'll see when I can find the time to try that out. Yeah, I think I read somewhere that it being in alpha was fine (can't find it now). But, I might look into trying it out after it's due (hence the label lol). EDIT: This TA mentions TestFX on the course forums here. |
So, it's not possible to test |
- Will take a look at #46 another time. - Moved the test package outside of src so that I could test package- private methods in src. - Auto-formatted code.
I covered writing unit tests for all the important methods in ImageTagManager, including private ones by calling the public method that uses them.
We only need them for 2 classes, but I think it'd be better design to have them for as many classes as we can.
ImageTagManager
TagManager
EDIT: We need more edge cases to be tested rather than just the basic ones I have written.
The text was updated successfully, but these errors were encountered: