Ejemplo n.º 1
0
  public void setUp() throws Exception {

    String time = String.valueOf((new Date()).getTime()).substring(8);
    String random = String.valueOf(Math.random()).substring(2);
    unique = (time + random);
    serviceName = "javaTastyTest-" + unique;

    JTastyDAO dao = new JTastyMockDAO();

    TastyBean tb = new TastyBean();
    tb.setDao(dao);
    tc = new TastyClient(tastyServerUrl, serviceName);
    tc.setTastyBean(tb);

    logger.debug(tastyServerUrl + "/service/" + serviceName);
    // create the service:
    tc.post(tastyServerUrl + "/service/" + serviceName);
    // add the user:

    tc.beanstatus();
  }