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

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.models.Defect.toJSON()


  }
 
  @Test
  public void testDeleteAll() throws WPISuiteException {
    Defect anotherDefect = new Defect(-1, "a title", "a description", existingUser);
    manager.makeEntity(defaultSession, anotherDefect.toJSON());
    assertEquals(2, db.retrieveAll(new Defect(), testProject).size());
    manager.deleteAll(adminSession);
    assertEquals(0, db.retrieveAll(new Defect(), testProject).size());
    // otherDefect should still be around
    assertEquals(1, db.retrieveAll(new Defect(), otherProject).size());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.