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:31 UTC
[isis] 06/08: ISIS-2192: ports some unit test from 4 to 5
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 525ea0c605c85682487140000249ea24363265e6
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jan 30 16:36:27 2020 +0000
ISIS-2192: ports some unit test from 4 to 5
---
.../toc/modules/comguide/pages/cutting-a-release.adoc | 17 ++++++++---------
.../applib/fixturescripts/ExecutionContextTest.java | 4 ++--
.../ExecutionParameters_AsKeyValueMap_Test.java | 5 +++--
.../applib/fixturescripts/ExecutionParameters_Test.java | 8 ++++----
.../applib/legacy/FixtureClockInstantiationTest.java | 8 ++++----
5 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/antora/toc/modules/comguide/pages/cutting-a-release.adoc b/antora/toc/modules/comguide/pages/cutting-a-release.adoc
index 795dc79..9ffff79 100644
--- a/antora/toc/modules/comguide/pages/cutting-a-release.adoc
+++ b/antora/toc/modules/comguide/pages/cutting-a-release.adoc
@@ -46,20 +46,19 @@ export ISISREL={isisnext}
export ISISRC=RC1
export ISISBRANCH=release-$ISISREL-$ISISRC
export ISISJIRA=ISIS-9999 # <2>
-export CATALINA_HOME=/c/java/apache-tomcat-9.0.10 # <3>
env | grep ISIS | sort
----
<1> adjust by platform
<2> set to an "umbrella" ticket for all release activities.
(One should exist already, xref:toc:comguide:post-release-successful.adoc#create-new-jira[created at] the beginning of the development cycle now completing).
-<3> adjust as required (Tomcat is used to smoke test the simpleapp archetype)
+
Obviously, alter ``$ISISREL`` as required, and bump ``$ISISRC`` for re-releasing following an xref:toc:comguide:about.adoc#post-release-unsuccessful[unsuccessful] release.
[IMPORTANT]
====
-Note that the branch name is intentionally *not* the same any of the eventual tag names (eg `isis-{isisnext}` or `simpleapp-archetype-{isisnext}`).
+Note that the branch name is intentionally *not* the same as the eventual tag names (eg `isis-{isisnext}`).
====
== Pull down code to release
@@ -91,9 +90,11 @@ The only mention of `SNAPSHOT` should be in the `revision` property of the root
Previously we used the `maven-release-plugin` which took responsibility for bumping the `<version>` from -SNAPSHOT to release, and then onto the next -SNAPSHOT.
However, this plugin does not seem to be compatible with the support for `$\{revision}` property introduced in Maven 3.5.0 in order https://maven.apache.org/maven-ci-friendly.html[to support CI/CD use cases]; at least we couldn't make it work.
-So, instead, we perform the edit of `$\{revision}` in the three `pom.xml` files (for `core` and the two archetypes):
+So, instead, we perform the edit of `$\{revision}` in the `pom.xml` files (for `core-parent`):
+
+Change these to the release version, using:
-Change all of these to the release version, using:
+WARNING: TODO: v2: these scripts have changed
[source,bash,subs="attributes+"]
----
@@ -256,7 +257,7 @@ This requires `gpg` v2.1 or later.
== Check/Close Staging Repo
-The `mvn deploy` commands will have uploaded release artifacts for both `core` and the `simpleapp` archetype into a newly created staging repository on the ASF Nexus repository server.
+The `mvn deploy` commands will have uploaded all of the release artifacts into a newly created staging repository on the ASF Nexus repository server.
Log onto http://repository.apache.org[repository.apache.org] (using your ASF LDAP account):
@@ -327,13 +328,11 @@ Push the release branch to origin:
git push -u origin $ISISBRANCH
----
-and also push tags for both core and the archetype:
+and also push tags:
[source,bash,subs="attributes+"]
----
git push origin refs/tags/isis-$ISISREL:refs/tags/isis-$ISISREL-$ISISRC
-git push origin refs/tags/simpleapp-archetype-$ISISREL:refs/tags/simpleapp-archetype-$ISISREL-$ISISRC
-git push origin refs/tags/helloworld-archetype-$ISISREL:refs/tags/helloworld-archetype-$ISISREL-$ISISRC
git fetch
----
diff --git a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionContextTest.java b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionContextTest.java
index 36747f8..1acda60 100644
--- a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionContextTest.java
+++ b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionContextTest.java
@@ -20,11 +20,11 @@ package org.apache.isis.testing.fixtures.applib.fixturescripts;
import java.util.Map;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
public class ExecutionContextTest {
diff --git a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_AsKeyValueMap_Test.java b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_AsKeyValueMap_Test.java
index 3dc8ab0..3fe688c 100644
--- a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_AsKeyValueMap_Test.java
+++ b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_AsKeyValueMap_Test.java
@@ -20,10 +20,11 @@ package org.apache.isis.testing.fixtures.applib.fixturescripts;
import java.util.Map;
-import org.junit.Test;
+
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
public class ExecutionParameters_AsKeyValueMap_Test extends ExecutionContextTest {
diff --git a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_Test.java b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_Test.java
index 44a1057..2a9b24d 100644
--- a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_Test.java
+++ b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/fixturescripts/ExecutionParameters_Test.java
@@ -23,17 +23,17 @@ import java.math.BigInteger;
import org.joda.time.LocalDate;
import org.joda.time.LocalDateTime;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
public class ExecutionParameters_Test {
private ExecutionParameters executionParameters;
- @Before
+ @BeforeEach
public void setUp() throws Exception {
executionParameters = new ExecutionParameters("");
}
diff --git a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/legacy/FixtureClockInstantiationTest.java b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/legacy/FixtureClockInstantiationTest.java
index c8f0d6a..801c1ae 100644
--- a/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/legacy/FixtureClockInstantiationTest.java
+++ b/testing/fixtures/applib/src/test/java/org/apache/isis/testing/fixtures/applib/legacy/FixtureClockInstantiationTest.java
@@ -20,19 +20,19 @@
package org.apache.isis.testing.fixtures.applib.legacy;
import org.hamcrest.CoreMatchers;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
import org.apache.isis.applib.clock.Clock;
import org.apache.isis.testing.fixtures.applib.clock.FixtureClock;
public class FixtureClockInstantiationTest {
- @Before
+ @BeforeEach
public void setUp() {
}