Package de.mhus.lib.test.adb.model

Examples of de.mhus.lib.test.adb.model.Finances


      }
     
      // -------------
      // test access control
 
      Finances f = new Finances();
      f.setActiva(10);
      f.setPassiva(10);
      f.setStore(s1.getId());
      f.create(manager);
     
      f.setActiva(20);
      f.save();
     
      f.setNewConfidential("write");
      f.save();
     
      try {
        f.save();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }
     
      f.reload();

      try {
        f.save();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }

      f.setConfidential("read"); // hack :)
      f.setNewConfidential("read");
      f.save();

      try {
        f.reload();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }
     
      f.setConfidential("read"); // hack :)
      f.setNewConfidential("remove");
      f.save();
      f.reload();
     
      try {
        f.remove();
        assertTrue(false);
      } catch (MException e) {
        System.out.println(e);
      }
     
      f.setConfidential("read"); // hack :)
      f.setNewConfidential("");
      f.save();
      f.reload();
      f.remove();
     
      // -------------
      // test dynamic objects

      Regal r = new Regal();
View Full Code Here

TOP

Related Classes of de.mhus.lib.test.adb.model.Finances

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.