Package edu.wpi.cs.wpisuitetng.modules.core.models

Examples of edu.wpi.cs.wpisuitetng.modules.core.models.User


    defect.setId(model.getId());
    defect.setTitle(txtTitle.getText());
    defect.setDescription(txtDescription.getText());
    defect.setStatus(DefectStatus.valueOf((String) cmbStatus.getSelectedItem()));
    if (!(txtAssignee.getText().equals(""))) {
      defect.setAssignee(new User("", txtAssignee.getText(), "", -1));
    }
    if (!(txtCreator.getText().equals(""))) {
      defect.setCreator(new User("", txtCreator.getText(), "", -1));
    }
    HashSet<Tag> tags = new HashSet<Tag>();
    for (int i = 0; i < tagPanel.lmTags.getSize(); i++) {
      tags.add(new Tag((String)tagPanel.lmTags.get(i)));
    }
View Full Code Here


  Defect d2;
  Project project;
 
  @Before
  public void setUp() {
    bob = new User("Bob", "bob", "", -1);
    d1 = new Defect(1, "", "", bob);
    d1.getEvents().add(new DefectChangeset());
    d1.getEvents().add(new Comment());
    d1.getTags().add(new Tag("test"));
    d1copy = new Defect(1, "", "", bob);
View Full Code Here

    }
   
    if(comment.getUser() == null) {
      issues.add(new ValidationIssue("Required", "user"));
    } else {
      User author = defectValidator.getExistingUser(comment.getUser().getUsername(), issues, "user");
      if(author != null) {
        if(!author.getUsername().equals(session.getUsername())) {
          issues.add(new ValidationIssue("Must match currently logged in user", "user"));
        } else {
          comment.setUser(author);
        }
      }
View Full Code Here

    delete1 = new Project("test2", "10");
    delete2 = new Project("test3", "1");
    add1 = new Project("add1", "11");
    add2 = new Project("add2", "12");
    temp = new Project("test","8");
    tempUser = new User("name", "username", "password", 1);
    tempUser.setRole(Role.ADMIN);
    temp.setPermission(Permission.WRITE, tempUser);
    updateTemp = new Project("0", "proj0");
    updateTemp.setPermission(Permission.WRITE, tempUser);
    conflict = new Project("test", "5");
View Full Code Here

TOP

Related Classes of edu.wpi.cs.wpisuitetng.modules.core.models.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.