Package edu.wpi.cs.wpisuitetng.modules.defecttracker

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.MockData


    goodUpdatedDefect.setAssignee(existingUserCopy);
    goodUpdatedDefect.setEvents(new ArrayList<DefectEvent>());
    goodUpdatedDefect.getTags().add(tagCopy);
    goodUpdatedDefect.setStatus(DefectStatus.CONFIRMED);
   
    db = new MockData(new HashSet<Object>());
    db.save(tag, testProject);
    db.save(bob);
    db.save(existingDefect, testProject);
    db.save(existingUser);
    db.save(otherDefect, otherProject);
View Full Code Here


    defect = new Defect(1, "title", "description", bob);
   
    User bobCopy = new User(null, "bob", null, -1);
    goodNewComment = new Comment(1, bobCopy, "hello");
   
    db = new MockData(new HashSet<Object>());
    db.save(defect, testProject);
    db.save(bob);
    validator = new CommentValidator(db);
  }
View Full Code Here

    testProject = new Project("test", "1");
    defaultSession = new Session(bob, testProject, mockSsid);
    defect = new Defect(1, "title", "description", bob);
    goodComment = new Comment(1, bob, "this defect is stupid, and so are you");
   
    db = new MockData(new HashSet<Object>());
    db.save(defect, testProject);
    db.save(bob);
    manager = new CommentManager(db);
  }
View Full Code Here

    goodUpdatedDefect.setStatus(DefectStatus.CONFIRMED);
   
    defaultSession = new Session(existingUser, testProject, mockSsid);
    newDefect = new Defect(-1, "A new defect", "A description", existingUser);
   
    db = new MockData(new HashSet<Object>());
    db.save(existingDefect, testProject);
    db.save(existingUser);
    db.save(otherDefect, otherProject);
    db.save(admin);
    manager = new DefectManager(db);
View Full Code Here

TOP

Related Classes of edu.wpi.cs.wpisuitetng.modules.defecttracker.MockData

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.