how do i create a Netbeans project and name it YourStudentNumber_Junit Test Activity1 In a vut package,
Question:
how do i create a Netbeans project and name it YourStudentNumber_Junit Test Activity1 In a vut package, Create a Java class named Student. The class should store the student number, and student name and gender. The name should consist of name and surname separated by a comma and gender should be female and male only. Use an enumeration type for gender (pages 155-156 of the book 7th edition). Code the default constructor to store 9 zeros as the student number (most student numbers have 9 digits), "name, surname" as default value for the name attribute and female as default gender. Code the parameterized constructor, call the set methods in the constructor Code getters and mutators for the attributes o Validate the name to accept only names with name and surname separated by a comma and both name and surname should have 3 characters or more. o Students who registered earlier than 2018 and those who registered after 2019 should be rejected.
Use the JUnit Testing Framework to verify if the set methods validate the data correctly. Use the following names for the set name mutator: 1. Botman, Bulelani 2. Dakwa Rutendo 3. Dlamini, NG 4. MA, Vusumuzi Use the following student numbers for the set student number mutator 1. 218253737 2. 219132755 3. 217104533 4. 215335279 5. 218w85888 6. 220285533 7. 2181044533 8. 21913256 So you must code 12 test methods in the JUnit test class.
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last