Bug 705 - UserID can be null and can be changed
Summary: UserID can be null and can be changed
Status: CONFIRMED
Alias: None
Product: CS3343_SEP_group8
Classification: Unclassified
Component: Model (show other bugs)
Version: version0
Hardware: PC Windows
: --- enhancement
Assignee: Meryem
URL:
Depends on:
Blocks:
 
Reported: 2022-11-16 16:14 HKT by Meryem
Modified: 2022-11-16 16:14 HKT (History)
0 users

See Also:


Attachments
userID shouldn't be null (22.80 KB, image/png)
2022-11-16 16:14 HKT, Meryem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meryem 2022-11-16 16:14:48 HKT
Created attachment 121 [details]
userID shouldn't be null

Problem location : User.java
Problem found : TestUser.java

The userID should be a unique (integer/String) that can't be changed and can't be null.

Solution : User class shouldn't have an empty constructer User()
User class shouldn't have a setter setuserID(String userID)