You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/01/30 17:03:27 UTC
[isis] 02/08: ISIS-2192: splits mavendeps-testing into 3
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit 348ce73e7ad849f4239b1d84192b1c22c7ae7a5f
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jan 30 15:55:38 2020 +0000
ISIS-2192: splits mavendeps-testing into 3
* mavendeps-unittests
* mavendeps-integtests
* mavendeps-integspecs
---
mavendeps/adoc/modules/mavendeps/pages/about.adoc | 249 ++++++++++++++++++++-
.../modules/mavendeps/partials/module-nav.adoc | 2 +-
pom.xml => mavendeps/integspecs/pom.xml | 54 ++---
pom.xml => mavendeps/integtests/pom.xml | 52 ++---
mavendeps/pom.xml | 4 +-
mavendeps/{testing => unittests}/pom.xml | 46 +---
pom.xml | 2 +-
starters/adoc/modules/parent-pom/pages/about.adoc | 39 ++--
starters/adoc/modules/simpleapp/pages/about.adoc | 2 +-
.../adoc/modules/integtestsupport/pages/about.adoc | 2 +-
testing/integtestsupport/applib/pom.xml | 116 ++++------
testing/specsupport/applib/pom.xml | 32 +--
testing/unittestsupport/applib/pom.xml | 113 +++-------
13 files changed, 389 insertions(+), 324 deletions(-)
diff --git a/mavendeps/adoc/modules/mavendeps/pages/about.adoc b/mavendeps/adoc/modules/mavendeps/pages/about.adoc
index ac42916..24a791f 100644
--- a/mavendeps/adoc/modules/mavendeps/pages/about.adoc
+++ b/mavendeps/adoc/modules/mavendeps/pages/about.adoc
@@ -1,4 +1,249 @@
-= Maven Dependencies
+= Convenience POMs
:Notice: 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 ag [...]
-TODO: to document
+The framework provides a number of "convenience" POMs that act as aggregators of other dependencies.
+
+For example, when writing unit tests for your domain app,
+it can simply depend on the `isis-mavendeps-unittesting` artifact (rather than have to reference all of JUnit, AssertJ, Spring Boot, Hamcrest, Mockito and so on).
+
+Currently five convenience POMs are provided.
+
+== isis-mavendeps-webapp
+
+The `isis-mavendeps-webapp` aggregates the main runtime dependencies of a production webapp.
+
+To use, add the following :
+
+[source,xml]
+.webapp/pom.xml
+----
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps-webapp</artifactId>
+ <type>pom</type>
+ </dependency>
+</dependencies>
+----
+
+For convenience, it includes all of the current components available:
+
+* Spring Boot (link:https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started.html#getting-started-first-application-dependencies[spring-boot-starter-web])
+
+* Apache Isis Core - the xref:refguide:ROOT:about.adoc[Applib] and underlying implementation (xref:core:runtime-services:about.adoc[Runtime Services])
+
+* All the security implementations (xref:security:bypass:about.adoc[Bypass],
+xref:security:shiro:about.adoc[Shiro], xref:security:keycloak:about.adoc[Keycloak])
+
+* All the viewer implementations (
+xref:vw:ROOT:about.adoc[Wicket], xref:vro:ROOT:about.adoc[Restful Objects])
+
+* All the persistence implementations (xref:pjdo:ROOT:about.adoc[JDO/DataNucleus])
+
+If you don't need any of these (for example, you'll probably only want one security implementation), then you can exclude the others.
+
+Also, remember that adding the class onto the classpath does _not_ make that functionality available (Apache Isis does not currently leverage Spring Boot's link:https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-auto-configuration[auto configuration] capabilities).
+So, you must also add in the appropriate `IsisModuleXxx` to your application's top-level link:https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Configuration.html[@Configuration] (aka "app manifest").
+For example, see the xref:starters:simpleapp:about.adoc#appmanifest[AppManifest for the SimpleApp] starter app.
+
+
+== Testing and BDD Specs
+
+Three convenience POMs are provided to support xref:testing:unittestsupport:about.adoc[unit testing], xref:testing:integtestsupport:about.adoc[integ testing] or running xref:testing:specsupport:about.adoc[BDD (Cucumber) specs].
+
+NOTE: in fact, these convenience POMs are just thin wrappers around the corresponding `isis-testing-xxx-applib` modules.
+We've added them for consistency.
+
+To use them when unit testing, add:
+
+[source,xml]
+.webapp/pom.xml
+----
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps-unittests</artifactId>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+</dependencies>
+----
+
+For integration testing, add:
+
+[source,xml]
+.webapp/pom.xml
+----
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps-integtests</artifactId>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+</dependencies>
+----
+
+For BDD (Cucumber) specs, within an integration testing context:
+
+[source,xml]
+.webapp/pom.xml
+----
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps-integspecs</artifactId>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+</dependencies>
+----
+
+The table below summarises the dependencies that each of these convenience POMs brings in.
+
+.Dependencies of the Convenience POM for Tests/Specs
+[cols="3a,^1a,^1a,^1a", options="header"]
+|===
+
+| Dependency
+| mavendeps-
+unittests
+| mavendeps-
+integtests
+| mavendeps-
+integspecs
+
+
+|Apache Isis' own xref:testing:unittestsupport:about.adoc[unit test support] +
+with JMock2 extensions to mock classes
+| Y
+|
+|
+
+|Apache Isis' own xref:testing:integtestsupport:about.adoc[integ test support]
+|
+| Y
+| Y
+
+|Apache Isis' own xref:testing:specsupport:about.adoc[BDD spec support]
+|
+|
+| Y
+
+| link:https://junit.org/junit5/docs/current/user-guide/[JUnit 5 "jupiter"]
+| Y
+| Y
+| Y
+
+| link:https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4[JUnit 5 "vintage"]
+| Y
+|
+|
+
+| link:https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-testing[Spring Boot Test]
+| Y
+| Y
+| Y
+
+| link:http://hamcrest.org/JavaHamcrest/[Hamcrest] (core + library)
+| Y
+| Y
+| Y
+
+| link:https://joel-costigliola.github.io/assertj/[AssertJ]
+| Y
+| Y
+| Y
+
+| link:https://site.mockito.org/[Mockito]
+| Y
+| Y
+| Y
+
+| link:http://jmock.org/[JMock]
+| Y
+|
+|
+
+| link:https://github.com/approvals/ApprovalTests.Java[Approval tests]
+| Y
+| Y
+| Y
+
+| link:https://github.com/google/guava/wiki[Google's Guava]
+| Y
+|
+|
+
+| link:http://picocontainer.com/[PicoContainer] +
+(for JMock2 extensions)
+| Y
+|
+|
+
+| Apache Isis xref:refguide:ROOT:about.adoc[Applib]
+| Y
+| Y
+| Y
+
+| Apache Isis xref:core:runtime-services:about.adoc[Runtime Services]
+|
+| Y
+| Y
+
+| Apache Isis xref:security:bypass:about.adoc[Bypass] security
+|
+| Y
+| Y
+
+| Apache Isis xref:pjdo:ROOT:about.adoc[JDO/DataNucleus]
+|
+| Y
+| Y
+
+| Apache Isis xref:testing:fixtures:about.adoc[Fixture Scripts]
+|
+| Y
+| Y
+
+|===
+
+
+
+== jdk11
+
+While Apache Isis v2 will run happily on Java 8, it is of course also possible to it on later versions.
+
+However, between Java 8 and Java 11 a number of packages related to JavaEE were removed from the JRE, but these packages are used by the framework, specifically
+
+* JAX-WS packages (`javax.jws`, `javax.jws.soap`, `javax.xml.soap`, and `javax.xml.ws.*`)
+* JAXB packages (`javax.xml.bind.*`)
+
+So, if you _do_ want to run your Apache Isis application on Java 11 or later, then these dependencies need to be added in.
+
+
+All you need to do is include this dependency in the webapp module:
+
+To use, add the following :
+
+[source,xml]
+.webapp/pom.xml
+----
+<dependencies>
+ <dependency>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps-jdk11</artifactId>
+ <type>pom</type>
+ </dependency>
+</dependencies>
+----
+
+If you are running on JDK11, then this will activate a profile to bring in the missing packages.
+Otherwise it will be ignored.
+
+For more on this topic, see:
+
+* link:https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html#JDK-8190378[JDK11 release notes]
+* link:http://openjdk.java.net/jeps/320[JEP 320] under which the packages were removed (also includes notes on replacements)
+* link:https://blog.codefx.org/java/java-11-migration-guide/#Removal-Of-Java-EE-Modules[this blog post] on how to fix it
+* link:https://stackoverflow.com/questions/48204141/replacements-for-deprecated-jpms-modules-with-java-ee-apis/48204154#48204154[this SO answer] on how to fix it
diff --git a/mavendeps/adoc/modules/mavendeps/partials/module-nav.adoc b/mavendeps/adoc/modules/mavendeps/partials/module-nav.adoc
index ee4e021..9276264 100644
--- a/mavendeps/adoc/modules/mavendeps/partials/module-nav.adoc
+++ b/mavendeps/adoc/modules/mavendeps/partials/module-nav.adoc
@@ -1 +1 @@
-** xref:starters:mavendeps:about.adoc[Maven Dependencies]
+** xref:starters:mavendeps:about.adoc[Convenience POMs]
diff --git a/pom.xml b/mavendeps/integspecs/pom.xml
similarity index 53%
copy from pom.xml
copy to mavendeps/integspecs/pom.xml
index 2381445..cc8285f 100644
--- a/pom.xml
+++ b/mavendeps/integspecs/pom.xml
@@ -12,53 +12,29 @@
<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/xsd/maven-4.0.0.xsd">
+
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.isis</groupId>
- <artifactId>isis-all</artifactId>
- <version>2.0.0-M3-SNAPSHOT</version>
+ <parent>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps</artifactId>
+ <version>2.0.0-M3-SNAPSHOT</version>
+ </parent>
+ <artifactId>isis-mavendeps-integspecs</artifactId>
<packaging>pom</packaging>
- <name>Apache Isis (Aggregator)</name>
+ <name>Apache Isis Maven Deps - BDD Integ Spec</name>
<description>
- Convenience aggregator POM that references all modules.
- The parent POM of all modules is core/pom.xml
+ Defines a module that can be used as a single dependency for BDD (Cucumber) specs as integration tests.
</description>
- <scm>
- <connection>scm:git:https://github.com/apache/isis.git</connection>
- <developerConnection>scm:git:https://github.com/apache/isis.git</developerConnection>
- <url>https://github.com/apache/isis.git</url>
- <tag>HEAD</tag>
- </scm>
-
- <modules>
- <module>core-parent</module>
-
- <module>examples/demo</module>
- <module>examples/smoketests</module>
- </modules>
-
- <profiles>
- <profile>
- <id>examples</id>
- <activation>
- <!--
- only include within IDE as a convenience
- -->
- <property>
- <name>idea.version</name>
- </property>
- </activation>
- <modules>
- <module>mixins</module>
- <module>core</module>
- <module>examples</module>
- </modules>
- </profile>
-
- </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.isis.testing</groupId>
+ <artifactId>isis-testing-specsupport-applib</artifactId>
+ </dependency>
+ </dependencies>
</project>
diff --git a/pom.xml b/mavendeps/integtests/pom.xml
similarity index 54%
copy from pom.xml
copy to mavendeps/integtests/pom.xml
index 2381445..aa013e3 100644
--- a/pom.xml
+++ b/mavendeps/integtests/pom.xml
@@ -12,53 +12,31 @@
<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/xsd/maven-4.0.0.xsd">
+
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.isis</groupId>
- <artifactId>isis-all</artifactId>
- <version>2.0.0-M3-SNAPSHOT</version>
+ <parent>
+ <groupId>org.apache.isis.mavendeps</groupId>
+ <artifactId>isis-mavendeps</artifactId>
+ <version>2.0.0-M3-SNAPSHOT</version>
+ </parent>
+ <artifactId>isis-mavendeps-integtests</artifactId>
<packaging>pom</packaging>
- <name>Apache Isis (Aggregator)</name>
+ <name>Apache Isis Maven Deps - Integration Testing</name>
<description>
- Convenience aggregator POM that references all modules.
- The parent POM of all modules is core/pom.xml
+ Defines a module that can be used as a single dependency for integration tests.
</description>
- <scm>
- <connection>scm:git:https://github.com/apache/isis.git</connection>
- <developerConnection>scm:git:https://github.com/apache/isis.git</developerConnection>
- <url>https://github.com/apache/isis.git</url>
- <tag>HEAD</tag>
- </scm>
-
- <modules>
- <module>core-parent</module>
-
- <module>examples/demo</module>
- <module>examples/smoketests</module>
- </modules>
+ <dependencies>
- <profiles>
- <profile>
- <id>examples</id>
- <activation>
- <!--
- only include within IDE as a convenience
- -->
- <property>
- <name>idea.version</name>
- </property>
- </activation>
- <modules>
- <module>mixins</module>
- <module>core</module>
- <module>examples</module>
- </modules>
- </profile>
+ <dependency>
+ <groupId>org.apache.isis.testing</groupId>
+ <artifactId>isis-testing-integtestsupport-applib</artifactId>
+ </dependency>
- </profiles>
+ </dependencies>
</project>
diff --git a/mavendeps/pom.xml b/mavendeps/pom.xml
index f1bedf7..ee956f8 100644
--- a/mavendeps/pom.xml
+++ b/mavendeps/pom.xml
@@ -98,7 +98,9 @@
<modules>
<module>jdk11</module>
- <module>testing</module>
+ <module>unittests</module>
+ <module>integtests</module>
+ <module>integspecs</module>
<module>webapp</module>
</modules>
diff --git a/mavendeps/testing/pom.xml b/mavendeps/unittests/pom.xml
similarity index 65%
rename from mavendeps/testing/pom.xml
rename to mavendeps/unittests/pom.xml
index 4a6c55b..260da8d 100644
--- a/mavendeps/testing/pom.xml
+++ b/mavendeps/unittests/pom.xml
@@ -21,7 +21,7 @@
<version>2.0.0-M3-SNAPSHOT</version>
</parent>
- <artifactId>isis-mavendeps-testing</artifactId>
+ <artifactId>isis-mavendeps-unittests</artifactId>
<packaging>pom</packaging>
@@ -56,50 +56,6 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.apache.isis.testing</groupId>
- <artifactId>isis-testing-integtestsupport-applib</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.isis.testing</groupId>
- <artifactId>isis-testing-specsupport-applib</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>${hibernate-validator.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.approvaltests</groupId>
- <artifactId>approvaltests</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.picocontainer</groupId>
- <artifactId>picocontainer</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- </dependency>
-
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </dependency>
</dependencies>
diff --git a/pom.xml b/pom.xml
index 2381445..454a79b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<name>Apache Isis (Aggregator)</name>
<description>
Convenience aggregator POM that references all modules.
- The parent POM of all modules is core/pom.xml
+ The parent POM of the core framework is core-parent/pom.xml
</description>
<scm>
diff --git a/starters/adoc/modules/parent-pom/pages/about.adoc b/starters/adoc/modules/parent-pom/pages/about.adoc
index 45343b5..0db4b8a 100644
--- a/starters/adoc/modules/parent-pom/pages/about.adoc
+++ b/starters/adoc/modules/parent-pom/pages/about.adoc
@@ -26,39 +26,34 @@ You'll see that it is used by both the xref:starters:helloworld:about.adoc[Hello
The link:{attachmentsdir}/parent-pom.pptx[diagram] below shows how the parent POM relates to other POMs:
-image::parent-pom.png[width="600px",link="{imagesdir}/parent-pom.png"]
+image::parent-pom.png[width="800px",link="{imagesdir}/parent-pom.png"]
-So, you can see that the parent POM:
+As the diagram shows, the parent POM inherits two Spring Boot parent POMs: directly from `org.springframework.boot:spring-boot-starter-parent`, and transitively inherits from `org.springframework.boot:spring-boot-dependencies`.
-* inherits from `org.springframework.boot:spring-boot-starter-parent`
-+
-This configures various `<build>/<plugins>` and `<resources`>
+* `spring-boot-starter-parent` configures various `<build>/<plugins>` and `<resources>`, while
+* `spring-boot-dependencies` the second defines numerous `xxx.version` properties for various third party applications (validated as being compatible with each other by the Spring Boot team), and sets up corresponding `<dependencyManagement>/<dependencies>`.
-* transitively inherits from `org.springframework.boot:spring-boot-dependencies`
-+
-This defines numerous `xxx.version` properties for various third party applications, and sets up corresponding `<dependencyManagement>/<dependencies>`.
-+
-NOTE: These have been validated as being compatible with each other by the Spring Boot team.
+The parent POM also import (using `scope=import, type=pom`) each of the "bill of material" POMs provided by Apache Isis framework:
-* imports `org.apache.isis.core:isis` (using scope=import, type=pom)
+* `org.apache.isis.core:isis` -
+
-\... setting up `<dependencyManagement>/<dependencies>` entries for all of the core modules.
-+
-TIP: The two core modules most commonly referenced in domain applications are `o.a.i.core:isis-applib` and `o.a.i.core:isis-schema`.
-
-* similarly imports `o.a.i.testing:isis-testing`, for the `isis-testing-xxx` modules
+The two core modules most commonly referenced by domain applications are `o.a.i.core:isis-applib` and `o.a.i.core:isis-schema`.
-* imports `o.a.i.extensions:isis-extensions`, for `isis-extension-xxx` modules
+* `o.a.i.testing:isis-testing`
++
+For the `isis-testing-xxx` modules (fixture scripts, unit test support, integ test support etc)
-* imports `o.a.i.subdomains:isis-subdomains`, for `isis-subdomain-xxx` modules
+* `o.a.i.extensions:isis-extensions`
-* imports `o.a.i.mappings:isis-mappings`, for `isis-mappings-xxx` modules
+* `o.a.i.subdomains:isis-subdomains`
-* imports `o.a.i.valuetypes:isis-valuetypes`, for `isis-valuetypes-xxx` modules
+* `o.a.i.mappings:isis-mappings`
-* imports `o.a.i.incubator:isis-incubator`, for `isis-incubator-xxx` modules
+* `o.a.i.valuetypes:isis-valuetypes`
-* imports `o.a.i.legacy:isis-legacy`, for `isis-legacy-xxx` modules
+* `o.a.i.incubator:isis-incubator`
+* `o.a.i.legacy:isis-legacy`
+These all set up `<dependencyManagement>/<dependencies>` entries for all of the modules, meaning that there's only one place to update the version to Apache Isis (the reference to the parent POM).
diff --git a/starters/adoc/modules/simpleapp/pages/about.adoc b/starters/adoc/modules/simpleapp/pages/about.adoc
index d8a0836..be2f9dc 100644
--- a/starters/adoc/modules/simpleapp/pages/about.adoc
+++ b/starters/adoc/modules/simpleapp/pages/about.adoc
@@ -324,7 +324,7 @@ There will be several of these app manifests, typically one for the webapp itsel
The link:{attachmentsdir}/simpleapp-modules-dependencies.pptx[diagram] below shows how classes fit together:
.Module Dependencies
-image::simpleapp-modules-dependencies.png/[width="600px",link="{imagesdir}/simpleapp-modules-dependencies.png/"]
+image::simpleapp-modules-dependencies.png[width="800px",link="{imagesdir}/simpleapp-modules-dependencies.png"]
diff --git a/testing/integtestsupport/adoc/modules/integtestsupport/pages/about.adoc b/testing/integtestsupport/adoc/modules/integtestsupport/pages/about.adoc
index ea04038..611d6f9 100644
--- a/testing/integtestsupport/adoc/modules/integtestsupport/pages/about.adoc
+++ b/testing/integtestsupport/adoc/modules/integtestsupport/pages/about.adoc
@@ -596,5 +596,5 @@ When running integration tests through the IDE, and if using the JDO/DataNucleus
If using IntelliJ, we recommend creating a run Maven configuration that runs `datanucleus:enhance`, and then pinning the configuration once run as a tab in the "Debug" window for easy access.
-image::pin-enhance-run-configuration.png/[width="400px",link="{imagesdir}/pin-enhance-run-configuration.png/"]
+image::pin-enhance-run-configuration.png[width="400px",link="{imagesdir}/pin-enhance-run-configuration.png"]
====
diff --git a/testing/integtestsupport/applib/pom.xml b/testing/integtestsupport/applib/pom.xml
index dc3178b..a4f3f8a 100644
--- a/testing/integtestsupport/applib/pom.xml
+++ b/testing/integtestsupport/applib/pom.xml
@@ -30,69 +30,6 @@
<dependencies>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- </dependency>
-
- <dependency>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <exclusions>
- <exclusion>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy</artifactId>
- </exclusion>
- <exclusion>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy-agent</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- framework default codegen for tests -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-codegen-bytebuddy</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <scope>compile</scope>
- </dependency>
-
- <!-- JDO API (non transient, provided by plugin) -->
- <dependency>
- <groupId>javax.jdo</groupId>
- <artifactId>jdo-api</artifactId>
- <version>${jdo-api.version}</version>
- <!-- provided by plugins -->
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <!-- convergence issues from spring-boot-starter-log4j2 -->
- <version>${slf4j-api.version}</version>
- </dependency>
-
-
<!-- SPRING -->
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -123,6 +60,10 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.junit.vintage</groupId>
+ <artifactId>junit-vintage-engine</artifactId>
+ </exclusion>
</exclusions>
</dependency>
@@ -132,10 +73,37 @@
</dependency>
<dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-security</artifactId>
+ <groupId>com.approvaltests</groupId>
+ <artifactId>approvaltests</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-library</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- JDO API (non transient, provided by plugin) -->
+ <dependency>
+ <groupId>javax.jdo</groupId>
+ <artifactId>jdo-api</artifactId>
+ <version>${jdo-api.version}</version>
+ <!-- provided by plugins -->
+ <scope>provided</scope>
</dependency>
-
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <!-- convergence issues from spring-boot-starter-log4j2 -->
+ <version>${slf4j-api.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.isis.testing</groupId>
+ <artifactId>isis-testing-fixtures-applib</artifactId>
+ </dependency>
+
<dependency>
<groupId>org.apache.isis.security</groupId>
<artifactId>isis-security-bypass</artifactId>
@@ -143,12 +111,22 @@
<dependency>
<groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-runtime</artifactId>
+ <artifactId>isis-core-runtimeservices</artifactId>
</dependency>
<dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-runtimeservices</artifactId>
+ <groupId>org.apache.isis.persistence</groupId>
+ <artifactId>isis-persistence-jdo-datanucleus5</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
</dependency>
</dependencies>
diff --git a/testing/specsupport/applib/pom.xml b/testing/specsupport/applib/pom.xml
index 2f2fa52..4bfd111 100644
--- a/testing/specsupport/applib/pom.xml
+++ b/testing/specsupport/applib/pom.xml
@@ -34,37 +34,11 @@
<dependencies>
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-runtime</artifactId>
- </dependency>
-
- <!-- ISIS TESTING -->
-
<dependency>
<groupId>org.apache.isis.testing</groupId>
- <artifactId>isis-testing-fixtures-applib</artifactId>
+ <artifactId>isis-testing-integtestsupport-applib</artifactId>
</dependency>
-
- <!-- TESTING -->
- <dependency>
- <groupId>org.apache.isis.testing</groupId>
- <artifactId>isis-testing-unittestsupport-applib</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- </dependency>
- <dependency>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </dependency>
-
+
<!-- CUCUMBER -->
<dependency>
<groupId>io.cucumber</groupId>
@@ -80,12 +54,14 @@
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumber.version}</version>
+<!--
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
+-->
</dependency>
</dependencies>
diff --git a/testing/unittestsupport/applib/pom.xml b/testing/unittestsupport/applib/pom.xml
index a40730f..61fd607 100644
--- a/testing/unittestsupport/applib/pom.xml
+++ b/testing/unittestsupport/applib/pom.xml
@@ -33,78 +33,6 @@
<artifactId>isis-applib</artifactId>
</dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- </dependency>
- <dependency>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- </dependency>
-
- <dependency>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <exclusions>
- <exclusion>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy</artifactId>
- </exclusion>
- <exclusion>
- <groupId>net.bytebuddy</groupId>
- <artifactId>byte-buddy-agent</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <!-- framework default codegen for tests -->
- <dependency>
- <groupId>org.apache.isis.core</groupId>
- <artifactId>isis-core-codegen-bytebuddy</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-library</artifactId>
- <scope>compile</scope>
- </dependency>
-
- <!-- JDO API (non transient, provided by plugin) -->
- <dependency>
- <groupId>javax.jdo</groupId>
- <artifactId>jdo-api</artifactId>
- <version>${jdo-api.version}</version>
- <!-- provided by plugins -->
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <!-- convergence issues from spring-boot-starter-log4j2 -->
- <version>${slf4j-api.version}</version>
- </dependency>
-
-
<!-- SPRING -->
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -144,11 +72,6 @@
</dependency>
<dependency>
- <groupId>org.picocontainer</groupId>
- <artifactId>picocontainer</artifactId>
- </dependency>
-
- <dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock</artifactId>
<exclusions>
@@ -178,6 +101,42 @@
</exclusions>
</dependency>
+ <dependency>
+ <groupId>com.approvaltests</groupId>
+ <artifactId>approvaltests</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.isis.core</groupId>
+ <artifactId>isis-core-codegen-bytebuddy</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.picocontainer</groupId>
+ <artifactId>picocontainer</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
+
+ <!-- JDO API (non transient, provided by plugin) -->
+ <dependency>
+ <groupId>javax.jdo</groupId>
+ <artifactId>jdo-api</artifactId>
+ <version>${jdo-api.version}</version>
+ <!-- provided by plugins -->
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <!-- convergence issues from spring-boot-starter-log4j2 -->
+ <version>${slf4j-api.version}</version>
+ </dependency>
+
</dependencies>
<profiles>