Bug 317

Summary: Creating user with empty name should throw an error
Product: Group20 Reporter: Anders <agmller2-c>
Component: UserAssignee: awkakavou2-c
Status: CONFIRMED ---    
Severity: enhancement CC: awkakavou2-c
Priority: ---    
Version: 1.0   
Hardware: PC   
OS: Linux   

Description Anders 2019-11-26 13:09:39 HKT
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;
}