[ 
https://issues.apache.org/jira/browse/OPENJPA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerry Carter reopened OPENJPA-1562:
-----------------------------------


Considerable progress.  Now only one of the twenty tests fails.

TestEntity refreshRemoved = new TestEntity("refresh removed");
em.persist(refreshRemoved);
em.flush();
em.remove(refreshRemoved);
em.flush();
em.refresh(refreshRemoved);

This should throw an IllegalArgumentException, but does not.

> Basic negative tests of the EntityManager fail
> ----------------------------------------------
>
>                 Key: OPENJPA-1562
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1562
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta2
>         Environment: Mac OS X, OpenJPA 2.0.0-beta2, Spring 3.0
>            Reporter: Jerry Carter
>            Assignee: Dianne Richards
>         Attachments: openjpa1562.tar.zip, simple_entity_tests.txt
>
>
> My application unit tests turned up some unexpected behavior from basic 
> OpenJPA entity manager functions.  It appears, for instance, that a detached 
> entity can still be refreshed.  I decided to write a few basic tests 
> (attached) which report five potential errors.  This does not go into the 
> testing of cascading behavior which would require additional work.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to