Package teammates

Examples of teammates.TeammatesServlet.doPost()


        result = new PrintWriter("test.txt");
      }
    };

    TeammatesServlet ts = new TeammatesServlet();
    ts.doPost(req, resp);
    ts.getResponse().getWriter().flush();
    assertTrue(FileUtils.readFileToString(new File("test.txt"), "UTF-8").contains("<status>course added</status>"));
  }

  @Test
View Full Code Here


        result = new PrintWriter("test.txt");
      }
    };

    TeammatesServlet ts = new TeammatesServlet();
    ts.doPost(req, resp);
    ts.getResponse().getWriter().flush();
    assertTrue(FileUtils.readFileToString(new File("test.txt"), "UTF-8").contains("<status>course exists</status>"));
  }
}
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.