/*
 * Copyright 2015 www.seleniumtests.com
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.seleniumtests.dataobject;

/**
 * User account object for TestLink.
 */
public class User {

    private String userID;
    private String password;

    public String getUserID() {
        return userID;
    }

    public String getPassword() {
        return password;
    }

    public void setUserID(final String userID) {
        this.userID = userID;
    }

    public void setPassword(final String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        return stringBuilder.append("User [UserId = " + userID + ", ").append("Password = " + password + "]")
                            .toString();
    }
}

@@ -710,22 +710,83 @@
  String 
-userID
+firstName;%0A    private String lastName;%0A    private String userName
 ;%0A    pr
@@ -830,22 +830,25 @@
 ring get
-UserID
+FirstName
 () %7B%0A   
@@ -859,22 +859,25 @@
  return 
-userID
+firstName
 ;%0A    %7D%0A
@@ -898,24 +898,24 @@
 ring get
-Password
+LastName
 () %7B%0A   
@@ -926,24 +926,122 @@
  return 
-password
+lastName;%0A    %7D%0A%0A    public void setFirstName(final String firstName) %7B%0A        this.firstName = firstName
 ;%0A    %7D%0A
@@ -1064,14 +1064,16 @@
  set
-UserID
+LastName
 (fin
@@ -1082,22 +1082,24 @@
  String 
-userID
+lastName
 ) %7B%0A    
@@ -1111,23 +1111,247 @@
 his.
-userID =
+lastName = lastName;%0A    %7D%0A%0A    public String getUserName() %7B%0A        return
  user
-ID
+Name;%0A    %7D%0A%0A    public void setUserName(String userName) %7B%0A        this.userName = userName;%0A    %7D%0A%0A    public String getPassword() %7B%0A        return password
 ;%0A  
@@ -1383,22 +1383,16 @@
 assword(
-final 
 String p
@@ -1456,20 +1456,16 @@
 Override
-%0A   
  public 
@@ -1539,24 +1539,25 @@
 gBuilder();%0A
+%0A
         retu
@@ -1591,35 +1591,54 @@
 er %5B
-UserId = %22 + userID + %22, %22)
+firstName = %22 + firstName + %22, %22)%0A            
 .app
@@ -1646,67 +1646,130 @@
 nd(%22
-Password
+lastName
  = %22 + 
-password
+lastName
  + %22
-%5D%22)%0A                            
+,%22).append(%22userName = %22 +%0A                userName + %22,%22).append(%22password %22 + password + %22%5D%22)
 .toS
@@ -1783,10 +1783,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

update user data