Package org.apache.jdo.tck.pc.mylib

Examples of org.apache.jdo.tck.pc.mylib.Point


    private void runTestDeletePersistentAllFails1(PersistenceManager pm) {
        Transaction tx =  pm.currentTransaction();
        try {
            tx.begin();
           
            Point np3 =  new Point (5,5);
           
            Collection col1 = new java.util.HashSet();
            col1.add(p1);
            col1.add(p2);
            col1.add(np3);
View Full Code Here


    private void runTestDeletePersistentAllFails2(PersistenceManager pm) {
        Transaction tx =  pm.currentTransaction();
        try {
            tx.begin();

            Point np3 =  new Point (5,5);

            Collection col1 = new java.util.HashSet();
            col1.add(p3);
            col1.add(p4);
            col1.add(np3);
View Full Code Here

        try {
            tx.begin();

            PCPoint np1 = new PCPoint (3,3);
            PCPoint np2 = new PCPoint (4,4);
            Point np3 =  new Point (5,5);

            Collection col1 = new HashSet();
            col1.add(np1);
            col1.add(np2);
            col1.add(np3);
View Full Code Here

        try {
            tx.begin();

            PCPoint np1 = new PCPoint (3,3);
            PCPoint np2 = new PCPoint (4,4);
            Point np3 =  new Point (5,5);

            Collection col1 = new java.util.HashSet();
            col1.add(np1);
            col1.add(np2);
            col1.add(np3);
View Full Code Here

     */
    public void testMakeDirtyNotPersistenceCapable() {
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Point p1 = new Point(1,2);
        JDOHelper.makeDirty(p1,"x");
        boolean dirty = JDOHelper.isDirty(p1);
        tx.commit();
        if (dirty)
            fail(ASSERTION_FAILED,
View Full Code Here

     */
    public void testIsDeletedNotPersistenceCapable() {
      pm = getPM();
      Transaction tx = pm.currentTransaction();
      tx.begin();
      Point p1 = new Point(1,3);
      boolean deleted = JDOHelper.isDeleted(p1);
      tx.commit();
      if (deleted)
            fail(ASSERTION_FAILED,
                 "JDOHelper.isDeleted called for instance of non-pc class returns true.");
View Full Code Here

     */
    public void testGetObjectIdNotPersistenceCapable() {
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Point p1 = new Point(1,3);
        Object oid = JDOHelper.getObjectId(p1);
        tx.commit();
        if (oid != null)
            fail(ASSERTION_FAILED,
                 "JDOHelper.getObjectId called for instance of non-pc class returned non-null ObjectId " + oid);
View Full Code Here

     */
    public void testGetTransactionalObjectIdNotPersistenceCapable() {
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Point p1 = new Point(1,3);
        Object oid = JDOHelper.getTransactionalObjectId(p1);
        tx.commit();

        if (oid != null)
            fail(ASSERTION_FAILED,
View Full Code Here

     */
    public void testIsDirtyNotPersistenceCapable() {
      pm = getPM();
      Transaction tx = pm.currentTransaction();
      tx.begin();
      Point p1 = new Point(1,3);
        boolean dirty = JDOHelper.isDirty(p1);
        tx.commit();
        if (dirty)
            fail(ASSERTION_FAILED,
                 "JDOHelper.isDirty returns true for instance of non-pc class.");
View Full Code Here

     */
    public void testIsNewNotPersistenceCapable() {
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.begin();
        Point p1 = new Point(1,3);
        boolean isNew = JDOHelper.isNew(p1);
        tx.commit();
        if (isNew)
          fail(ASSERTION_FAILED,
                 "JDOHelper.isNew returns true for instance of non-pc class.");
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.mylib.Point

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.