Commit Graph

97 Commits

Author SHA1 Message Date
Donald Woods 60cae2ff51 OPENJPA-1103 Upgrade to 1.0-SNAPSHOT versions of the jpa2 and bv spec apis and remove the early access disclaimer.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889818 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 21:19:55 +00:00
Donald Woods a24efc3c55 OPENJPA-839 Need to exclude new source and shade created jars from being used for the agent setting to the TCK
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830927 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 13:15:23 +00:00
Donald Woods 721c6ce211 shouldn't be building osgi-tests right now
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828113 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 17:24:44 +00:00
Donald Woods c753ce2278 OPENJPA-767 Start of true OSGi support, which uses the r828047 changes in the Geronimo JPA2 1.0-EA9 spec to resolve/load providers in OSGi. Still lots of work needed, so this is not in the normal builds yet.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828051 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 15:33:44 +00:00
Donald Woods 737f17fc26 OPENJPA-1101 bundle metadata tweaks for osgi tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826665 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 13:24:29 +00:00
Donald Woods f1fc076840 OPENJPA-1347 Upgrade to Validation 1.0 GA API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824890 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 19:29:13 +00:00
Donald Woods 8956f17824 OPENJPA-1347 Upgrade to Validation API 1.0.0.GA and Hibernate 4.0.0.GA for bean validation testing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824805 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 15:26:41 +00:00
Pinaki Poddar 05d2a80417 OPENJPA-1345: Update to JPA Spec version EA9
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824568 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 02:06:19 +00:00
Donald Woods a91b3bdb40 OPENJPA-1101 hellojpa as a bundle and steps on how to deploy openjpa to Apache Felix Karaf. Tests are disabled for now, as we need better Karaf integration with maven.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@823304 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:15:00 +00:00
Donald Woods c6085cd296 OPENJPA-1229 Remove extra Geronimo repo as the artifacts are mirrored now. Update the repoId for sonatype.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822350 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 17:07:54 +00:00
Donald Woods 680320a733 OPENJPA-1229 Upgrade to agimatec-validation 0.9.3
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821129 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 18:47:25 +00:00
Donald Woods b68c975ebf OPENJPA-1229 Upgrade to agimatec-validation 0.9.3 which supports 1.0.CR5 now, but still lacks support for XML constraints (so 1 test in testMappedSuperXMLConstraint fails)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821124 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 18:33:59 +00:00
Donald Woods 5113654485 add common setTestsDisabled()/isTestsDisabled() in AbstractPersistenceTestCase which is used by runTest() to automatically skip all tests. added new setSupportedDatabases()/setUnsupportedDatabases() methods in SingleEMFTestCase to set the testsDisabled flag in AbstractPTC, along with moving a getLog() method from some testcases into the base SingleEMFTC class for everyone to use.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813506 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 16:40:37 +00:00
Jeremy Bauer 1f347633aa OPENJPA-1282 Update bean validation RI provider and spec API level. Remove allow failure from test that passes due to provider update.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810645 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 18:18:27 +00:00
Donald Woods 7065743f17 OPENJPA-1252 Include a Derby Network Server test profile, allow Derby version to be changed on the cmdline, and cleanup some formatting/comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805841 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19 15:36:02 +00:00
Michael Dick c8fa380048 Fixing validation test hierarchy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804333 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:55 +00:00
Michael Dick 89a7f53db0 Refactor PersistenceTestCase to AbstractCachedEMFTestCase and AbstractPersistenceTestCase.
Deprecate old class to allow submodules to compile (can be removed after maven repos is updated).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804331 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:39 +00:00
Michael Dick 61b85e4b1a OPENJPA-1234: Remove mistakenly added columnDefinition..
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802589 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 20:40:49 +00:00
Michael Dick fb2a45a739 OPENJPA-1234:
AllowFailure checks for system property before running or logging exceptions from test methods.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802587 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 20:38:58 +00:00
Jeremy Bauer 233e258cb8 OPENJPA-1157 Added test which contains uses constraints and persistence metadata defined in XML. Updated ValidatorImpl to trace exceptions thrown as a result of creating the default validator factory.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802062 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 16:06:17 +00:00
Donald Woods 35be8fb0ba OPENJPA-1148 Remove test.jvm.arguments, which was causing this module to always fail with a OOM PermGen space with 64bit Java 6 on Linux automated builds. Also merged in some recent updates in o-p-j for derby lock timeouts and ehnancer agent settings.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801163 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 12:10:48 +00:00
Jeremy Bauer 63cacaa1c9 OPENJPA-1208 Set compatibility options and validation mode based on persistence version.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800951 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:32:49 +00:00
Donald Woods df073249f5 OPENJPA-1107 Updated TraversableResolver that calls only our OpenJPAPersistenceUtil. Updated OpenJPAPersistenceUtil.isLoaded() to handle UnsupportedOperationException when checking a detached entity and returns LoadState.UNKNOWN. Also added a testcase in TestPersistenceUtil to verify that caller gets isLoaded()==true for a detached entity and fixed a trace output in TestConstraints.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800568 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:14:43 +00:00
Kevin W. Sutter b5e893b5a7 OPENJPA-1221. Modified openjpa-integration module pom files for examples, tck, and osgi-itests to be consistent with the validation module.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800526 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 20:21:51 +00:00
Donald Woods 1b86a81c94 OPENJPA-1190 Use Geronimo EA5 JPA spec jar. Patch only has method stubs returning null for the new methods added by EA5, like -
PersistenceUnitInfoImpl.getSharedCacheMode()
EntityManagerFactoryImpl.getPersistenceUnitUtil()
PersistenceProviderImpl.getProviderUtil()

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796457 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 18:44:07 +00:00
Donald Woods 0cf0922386 OPENJPA-1177 Upgraded to use geronimo-validation_1.0_spec-1.0-EA3-SNAPSHOT (1.0.CR3 API level) and to use hibernate RI as the default Bean Validation provider for integration tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796331 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 15:03:18 +00:00
Donald Woods 06d2be5bd4 OPENJPA-1177 cleanup metadata and imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796330 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 15:00:41 +00:00
Donald Woods 37d9ceae26 OPENJPA-1170 We can pickup the agimatec-validation artifacts from the public Sonatype OSS Repo now.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796011 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 21:07:25 +00:00
Donald Woods c487d103c1 fix license header formatting
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794861 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 21:12:55 +00:00
Donald Woods 78b694ff9a fix license header formatting
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794860 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 21:11:26 +00:00
Donald Woods 21fec94f19 OPENJPA-1177 Preparing for upgrade to newer JSR-303 1.0.CR3 spec level with some extra tracing, as checkCVE() is going to be broken.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794412 13f79535-47bb-0310-9956-ffa450edef68
2009-07-15 20:49:20 +00:00
Donald Woods aefd05089d OPENJPA-1170 Fix which validation/jpa2 spec jars and versions are pulled in by transitive Maven depends.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794409 13f79535-47bb-0310-9956-ffa450edef68
2009-07-15 20:48:08 +00:00
Donald Woods 17a0c1d9b2 cleanup imports and add proper EMF cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793980 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 17:20:32 +00:00
Donald Woods 3231ac4a2a OPENJPA-1114 Add an exclude for the Hibernate test profile, which now works except for 5 expected failures due to unimplemented constraints in the version of Hibernate that implemented the 1.0.CR1 API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793639 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 17:47:31 +00:00
Donald Woods edff099770 OPENJPA-1114 Add an exclude for the agimatec-jsr303 transitive depend on javax.validation-validation-api RI, as discovered by Albert Lee.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793612 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 15:43:51 +00:00
Donald Woods 717a0b1855 OPENJPA-1157 adding @Valid tests of embedded one-to-one entity and tracing of the included ConstraintViolation exceptions contained within the thrown ConstraintViolationException while validating the expected number are in the Set.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792248 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 18:22:16 +00:00
Donald Woods b577460955 OPENJPA-1157 adding @Pattern constraint tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792203 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 16:03:03 +00:00
Donald Woods edf98f5f91 OPENJPA-1157 adding @Future and @Past constraint tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792186 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 15:31:10 +00:00
Donald Woods ba49a316e7 OPENJPA-1157 improved EMF cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792135 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 13:41:44 +00:00
Jeremy Bauer 5283bcd77d OPENJPA-1082 Added support for configurable bean validation groups
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791678 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 02:35:08 +00:00
Donald Woods 5bfc42f725 OPENJPA-1157 Integration tests for Bean Validation providers - Part 2. Added @Size constraint tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791621 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 21:37:18 +00:00
Donald Woods 1bdb8363f8 OPENJPA-1157 Integration tests for Bean Validation providers - Part 2. Added @Digits constraint tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791609 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 20:49:27 +00:00
Donald Woods 60fd64109c OPENJPA-1157 Integration tests for Bean Validation providers - Part 2. Added @Min and @Max constraint tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791594 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 19:59:04 +00:00
Donald Woods 10bd4e70de OPENJPA-1157 Integration tests for Bean Validation providers - Part 2. Convert some of the existing attribute constraints to be method/getter constraints.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791554 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 18:08:18 +00:00
Donald Woods 617e6ddff4 OPENJPA-1106 Add tests for DecimalMin/Max constraints. Upgrade to agimatec 0.9.1-SNAPSHOT which has been updated to the 1.0.CR1 API level and now includes support for DecimalMin/Max constraints.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790722 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 19:44:18 +00:00
Jeremy Bauer c24bc1d75c OPENJPA-1068 Modified exception translator to translate wrapped validation exceptions. EM operations now throw correct validation exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790700 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 18:21:26 +00:00
Donald Woods de7f5c1189 OPENJPA-1106 Integration tests for Bean Validation providers. Add tests for special update/delete/ignore cases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789450 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 21:16:06 +00:00
Donald Woods 2fc4ba2c45 OPENJPA-1106 Integration tests for Bean Validation providers. Tests for @AssertTrue and @AssertFalse.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789421 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 19:45:27 +00:00
Donald Woods bc5a51520f OPENJPA-1106 Initial @Null and @NotNull validation contraint tests along with other entity classes for future tests to be added.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788849 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 20:06:40 +00:00
Donald Woods 0d8b1dc074 OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Also some config rework as suggested by Pinaki in reviewing OPENJPA-1114. This is Part 1, as the thrown PersistenceException is not marked as Fatal and contains a null description, but does have the stack.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785366 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 20:11:45 +00:00