| Summary: | Creating user with empty name should throw an error | ||
|---|---|---|---|
| Product: | Group20 | Reporter: | Anders <agmller2-c> |
| Component: | User | Assignee: | awkakavou2-c |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | CC: | awkakavou2-c |
| Priority: | --- | ||
| Version: | 1.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Hi! At the current moment it is possible to create a user with an empty name (string is empty). I imagine a check should be made in code below from the User.java class: public User(String s, double d, int i) throws IllegalArgumentException { this.name = s; this.balance = d; this.id = i; }