-
Notifications
You must be signed in to change notification settings - Fork 25
Feat: adds amiyah jones' custom class / exception / objects , lesson 16 #518
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
Feat: adds amiyah jones' custom class / exception / objects , lesson 16 #518
Conversation
Accidentally removed my work the 1st time by merging
feat: adds action to testAddStudent()
feat: adds testAddStudent more simple.
feat: adds import to JobReadinessProgram class
feat: adds ta names , and an illlegal exception for invalid ta
… statement fix: changed order of logic in addStudent()
if claassroom is full , assign TA test , display TA. minor details changed as well (parameter , TA)
moved isSuccessful at the bottom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend avoiding null
values in the constructor for tests. They can be ambiguous to readers and might lead to NullPointerExceptions
. Normally, your code should handle edge cases like null, and those scenarios can be tested separately. That said, it's not critical to change the null
values here, it's just a suggestion for clarity and to avoid potential issues in the future.
.../objects_app/src/main/java/com/codedifferently/lesson16/amiyahjones/JobReadinessProgram.java
Outdated
Show resolved
Hide resolved
chore: changed null values in the constructor
in JobReadinessProgram
No description provided.