Package org.openbravo.model.project

Examples of org.openbravo.model.project.Project


   */
  public void testOrganizationCheck() {
    setUserContext("0");
    OBContext.getOBContext().getOrganizationStructureProvider().reInitialize();

    final Project p = OBDal.getInstance().get(Project.class, "1000001");
    final Organization o5 = OBDal.getInstance().get(Organization.class, "1000005");
    final Organization o3 = OBDal.getInstance().get(Organization.class, "1000001");
    p.setOrganization(o3);
    p.getBusinessPartner().setOrganization(o5);

    try {
      commitTransaction();
      fail();
    } catch (final OBException e) {
View Full Code Here

TOP

Related Classes of org.openbravo.model.project.Project

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.