Package org.structr.core.entity

Examples of org.structr.core.entity.TestSeven


      props.put(AbstractNode.name, "TestSeven-0");;

      try (final Tx tx = app.tx()) {

        // this will work
        TestSeven node = app.create(TestSeven.class, props);

        props.remove(AbstractNode.name);
        props.put(lat, 50.12285d);
        props.put(lon, 8.73924d);

        // this will fail
        TestSeven node2 = app.create(TestSeven.class, props);

        // adding another
        TestSeven node3 = app.create(TestSeven.class, props);

        tx.success();
      }

      fail("Expected a FrameworkException (name must_not_be_empty)");
View Full Code Here

TOP

Related Classes of org.structr.core.entity.TestSeven

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.