You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/08/04 06:02:16 UTC
[isis] branch master updated: ISIS-2835: promote JPA publishing
tests to 'stable'
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 0918255 ISIS-2835: promote JPA publishing tests to 'stable'
0918255 is described below
commit 0918255e3e0b282668cd5157f1772e937a3a175e
Author: andi-huber <ah...@apache.org>
AuthorDate: Wed Aug 4 08:02:08 2021 +0200
ISIS-2835: promote JPA publishing tests to 'stable'
(JDO not yet)
---
regressiontests/pom.xml | 2 +
.../stable-publishing-jpa/log4j2-test.xml | 78 ++++++++++++++++++++++
regressiontests/stable-publishing-jpa/pom.xml | 36 ++++++++++
.../publishing/jpa/JpaCommandPublishingTest.java | 2 +
.../publishing/jpa/JpaEntityPublishingTest.java | 2 +
.../publishing/jpa/JpaExecutionPublishingTest.java | 2 +
.../jpa/JpaLifecycleEventPublishingTest.java | 2 +
.../publishing/jpa/JpaPropertyPublishingTest.java | 2 +
8 files changed, 126 insertions(+)
diff --git a/regressiontests/pom.xml b/regressiontests/pom.xml
index 886f555..aac2a64 100644
--- a/regressiontests/pom.xml
+++ b/regressiontests/pom.xml
@@ -294,6 +294,8 @@
<module>stable-logging</module>
<module>stable-persistence-jdo</module>
<module>stable-persistence-jpa</module>
+<!-- <module>stable-publishing-jdo</module> code is still incubating -->
+ <module>stable-publishing-jpa</module>
<module>stable-rest</module>
<!-- <module>incubating</module> -->
</modules>
diff --git a/regressiontests/stable-publishing-jpa/log4j2-test.xml b/regressiontests/stable-publishing-jpa/log4j2-test.xml
new file mode 100644
index 0000000..0ed7986
--- /dev/null
+++ b/regressiontests/stable-publishing-jpa/log4j2-test.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<Configuration status="WARN">
+ <Properties>
+ <Property name="PID">????</Property>
+ <Property name="LOG_EXCEPTION_CONVERSION_WORD">%xwEx</Property>
+ <Property name="LOG_LEVEL_PATTERN">%5p</Property>
+ <Property name="LOG_DATEFORMAT_PATTERN">yyyy-MM-dd HH:mm:ss.SSS</Property>
+ <Property name="CONSOLE_LOG_PATTERN">%clr{%d{${LOG_DATEFORMAT_PATTERN}}}{faint} %clr{${LOG_LEVEL_PATTERN}} %clr{${sys:PID}}{magenta} %clr{---}{faint} %clr{[%15.15t]}{faint} %clr{%-40.40c{1.}}{cyan} %clr{:}{faint} %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property>
+ <Property name="FILE_LOG_PATTERN">%d{${LOG_DATEFORMAT_PATTERN}} ${LOG_LEVEL_PATTERN} ${sys:PID} --- [%t] %-40.40c{1.} : %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property>
+ </Properties>
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT" follow="true">
+ <PatternLayout pattern="${sys:CONSOLE_LOG_PATTERN}" />
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Logger name="org.apache.catalina.startup.DigesterFactory" level="error" />
+ <Logger name="org.apache.catalina.util.LifecycleBase" level="error" />
+ <Logger name="org.apache.coyote.http11.Http11NioProtocol" level="warn" />
+ <logger name="org.apache.sshd.common.util.SecurityUtils" level="warn"/>
+ <Logger name="org.apache.tomcat.util.net.NioSelectorPool" level="warn" />
+ <Logger name="org.eclipse.jetty.util.component.AbstractLifeCycle" level="error" />
+ <Logger name="org.hibernate.validator.internal.util.Version" level="warn" />
+ <logger name="org.springframework.boot.actuate.endpoint.jmx" level="warn"/>
+
+ <logger name="org.apache.directory" level="warn"/>
+ <logger name="org.apache.directory.api.ldap.model.entry.Value" level="off"/>
+
+ <logger name="DataNucleus.Persistence" level="info"/>
+ <logger name="DataNucleus.Transaction" level="info"/>
+ <logger name="DataNucleus.Datastore.Schema" level="info"/>
+ <logger name="DataNucleus.Datastore.Native" level="info"/>
+
+ <Root level="info">
+ <AppenderRef ref="Console" />
+ </Root>
+ </Loggers>
+</Configuration>
+
+<!-- # DataNucleus Logging Categories -->
+<!-- DataNucleus.Persistence - All messages relating to the persistence process -->
+<!-- DataNucleus.Transaction - All messages relating to transactions -->
+<!-- DataNucleus.Connection - All messages relating to Connections. -->
+<!-- DataNucleus.Query - All messages relating to queries -->
+<!-- DataNucleus.Cache - All messages relating to the DataNucleus Cache -->
+<!-- DataNucleus.MetaData - All messages relating to MetaData -->
+<!-- DataNucleus.Datastore - All general datastore messages -->
+<!-- DataNucleus.Datastore.Schema - All schema related datastore log messages -->
+<!-- DataNucleus.Datastore.Persist - All datastore persistence messages -->
+<!-- DataNucleus.Datastore.Retrieve - All datastore retrieval messages -->
+<!-- DataNucleus.Datastore.Native - Log of all 'native' statements sent to the datastore -->
+<!-- DataNucleus.General - All general operational messages -->
+<!-- DataNucleus.Lifecycle - All messages relating to object lifecycle changes -->
+<!-- DataNucleus.ValueGeneration - All messages relating to value generation -->
+<!-- DataNucleus.Enhancer - All messages from the DataNucleus Enhancer. -->
+<!-- DataNucleus.SchemaTool - All messages from DataNucleus SchemaTool -->
+<!-- DataNucleus.JDO - All messages general to JDO -->
+<!-- DataNucleus.JPA - All messages general to JPA -->
+<!-- DataNucleus.JCA - All messages relating to Connector JCA. -->
+<!-- DataNucleus.IDE - Messages from the DataNucleus IDE. -->
\ No newline at end of file
diff --git a/regressiontests/stable-publishing-jpa/pom.xml b/regressiontests/stable-publishing-jpa/pom.xml
new file mode 100644
index 0000000..bca30c2
--- /dev/null
+++ b/regressiontests/stable-publishing-jpa/pom.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+ license agreements. See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership. The ASF licenses this file to
+ you under the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a copy of
+ the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+ by applicable law or agreed to in writing, software distributed under the
+ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ OF ANY KIND, either express or implied. See the License for the specific
+ language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.isis.regressiontests</groupId>
+ <artifactId>isis-regressiontests</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>isis-regressiontests-stable-publishing-jpa</artifactId>
+
+ <name>Apache Isis - Regression Tests (stable) - Publishing (JPA)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.isis.regressiontests</groupId>
+ <artifactId>isis-regressiontests-stable</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java
similarity index 97%
rename from regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java
rename to regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java
index 7676d4b..b33024a 100644
--- a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java
+++ b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaCommandPublishingTest.java
@@ -21,6 +21,7 @@ package org.apache.isis.testdomain.publishing.jpa;
import javax.inject.Inject;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.apache.isis.core.config.presets.IsisPresets;
@@ -47,6 +48,7 @@ import org.apache.isis.testdomain.publishing.stubs.CommandPublishingTestAbstract
@TestPropertySource({
IsisPresets.UseLog4j2Test
})
+@DirtiesContext
class JpaCommandPublishingTest
extends CommandPublishingTestAbstract
implements HasPersistenceStandardJpa {
diff --git a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java
similarity index 97%
rename from regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java
rename to regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java
index 09a0c80..5d4bd61 100644
--- a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java
+++ b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaEntityPublishingTest.java
@@ -21,6 +21,7 @@ package org.apache.isis.testdomain.publishing.jpa;
import javax.inject.Inject;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.apache.isis.core.config.presets.IsisPresets;
@@ -46,6 +47,7 @@ import org.apache.isis.testdomain.publishing.stubs.EntityPublishingTestAbstract;
@TestPropertySource({
IsisPresets.UseLog4j2Test
})
+@DirtiesContext
class JpaEntityPublishingTest
extends EntityPublishingTestAbstract
implements HasPersistenceStandardJpa {
diff --git a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java
similarity index 97%
rename from regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java
rename to regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java
index 05d614e..2b42ba1 100644
--- a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java
+++ b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaExecutionPublishingTest.java
@@ -21,6 +21,7 @@ package org.apache.isis.testdomain.publishing.jpa;
import javax.inject.Inject;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.apache.isis.core.config.presets.IsisPresets;
@@ -47,6 +48,7 @@ import org.apache.isis.testdomain.publishing.stubs.ExecutionPublishingTestAbstra
@TestPropertySource({
IsisPresets.UseLog4j2Test
})
+@DirtiesContext
class JpaExecutionPublishingTest
extends ExecutionPublishingTestAbstract
implements HasPersistenceStandardJpa {
diff --git a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java
similarity index 97%
rename from regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java
rename to regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java
index 3990ec9..584a31c 100644
--- a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java
+++ b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaLifecycleEventPublishingTest.java
@@ -21,6 +21,7 @@ package org.apache.isis.testdomain.publishing.jpa;
import javax.inject.Inject;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.apache.isis.core.config.presets.IsisPresets;
@@ -46,6 +47,7 @@ import org.apache.isis.testdomain.publishing.stubs.LifecycleEventPublishingTestA
@TestPropertySource({
IsisPresets.UseLog4j2Test
})
+@DirtiesContext
class JpaLifecycleEventPublishingTest
extends LifecycleEventPublishingTestAbstract
implements HasPersistenceStandardJpa {
diff --git a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java
similarity index 97%
rename from regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java
rename to regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java
index cd04fa2..27787d7 100644
--- a/regressiontests/incubating/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java
+++ b/regressiontests/stable-publishing-jpa/src/test/java/org/apache/isis/testdomain/publishing/jpa/JpaPropertyPublishingTest.java
@@ -21,6 +21,7 @@ package org.apache.isis.testdomain.publishing.jpa;
import javax.inject.Inject;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.TestPropertySource;
import org.apache.isis.core.config.presets.IsisPresets;
@@ -46,6 +47,7 @@ import org.apache.isis.testdomain.publishing.stubs.PropertyPublishingTestAbstrac
@TestPropertySource({
IsisPresets.UseLog4j2Test
})
+@DirtiesContext
class JpaPropertyPublishingTest
extends PropertyPublishingTestAbstract
implements HasPersistenceStandardJpa {