Ejemplo n.º 1
0
  /** Test of setCollaborationInfo method, of class UserMessage. */
  @Test
  public void test09_SetCollaborationInfo() {
    em.getTransaction().begin();
    List<UserMessage> tps = em.createQuery("from UserMessage", UserMessage.class).getResultList();
    UserMessage instance;
    CollaborationInfo colInfo =
        new CollaborationInfo(T_COLLABINFO_SVC, T_COLLABINFO_ACTION, T_COLLABINFO_PMODE);

    assertTrue(tps.size() == 1);

    instance = tps.get(0);

    instance.setCollaborationInfo(colInfo);

    em.persist(instance);
    em.getTransaction().commit();
  }