From e0b955ed11a840e80ba65f05e299f69ddd24eb8e Mon Sep 17 00:00:00 2001 From: Pieter van den Hombergh Date: Tue, 20 Feb 2024 23:31:05 +0100 Subject: [PATCH 1/4] remove all mentions of sebipom --- topics/assertjexamples.adoc | 2 +- topics/code/cabbage/pom.xml | 6 +++--- topics/code/myfirstmock/pom.xml | 8 +++---- topics/code/simplejdbc/pom.xml | 6 +++--- topics/configuringmaven.adoc | 2 +- topics/gettingstarted.adoc | 2 +- topics/informaticspom.adoc | 22 +++++++++---------- topics/jpms.adoc | 4 ++-- topics/sebipom.adoc | 38 ++++++++++++++++----------------- 9 files changed, 45 insertions(+), 45 deletions(-) diff --git a/topics/assertjexamples.adoc b/topics/assertjexamples.adoc index 301d073..c03a63a 100644 --- a/topics/assertjexamples.adoc +++ b/topics/assertjexamples.adoc @@ -17,7 +17,7 @@ We try to use the latest stable version of AssertJ and Junit 5. [TIP] ==== -Either use sebipom version 3.0.0 and up or add assertj.core to your test dependencies. +Either use informaticspom version 3.0.0 and up or add assertj.core to your test dependencies. ==== === Simple Tests diff --git a/topics/code/cabbage/pom.xml b/topics/code/cabbage/pom.xml index 772dadb..33be3a0 100644 --- a/topics/code/cabbage/pom.xml +++ b/topics/code/cabbage/pom.xml @@ -2,9 +2,9 @@ 4.0.0 - nl.fontys.sebivenlo - sebipom - 2.5.1 + io.github.fontysvenlo + informaticspom + 1.3 cabbage diff --git a/topics/code/myfirstmock/pom.xml b/topics/code/myfirstmock/pom.xml index fd5e008..26ded65 100644 --- a/topics/code/myfirstmock/pom.xml +++ b/topics/code/myfirstmock/pom.xml @@ -6,9 +6,9 @@ 1.0-SNAPSHOT jar - nl.fontys.sebivenlo - sebipom - 2.3.7 + io.github.fontysvenlo + informaticspom + 1.3 @@ -16,4 +16,4 @@ 11 11 - \ No newline at end of file + diff --git a/topics/code/simplejdbc/pom.xml b/topics/code/simplejdbc/pom.xml index 31f3895..dc3355b 100644 --- a/topics/code/simplejdbc/pom.xml +++ b/topics/code/simplejdbc/pom.xml @@ -2,9 +2,9 @@ 4.0.0 - io.github.sebivenlo - testeasypom - 4.0.2 + io.github.fontysvenlo + informaticspom + 1.3 simplejdbc diff --git a/topics/configuringmaven.adoc b/topics/configuringmaven.adoc index 3171ac3..41a3149 100644 --- a/topics/configuringmaven.adoc +++ b/topics/configuringmaven.adoc @@ -51,4 +51,4 @@ file with The link:topics/settings.xml.txt[raw settings file]. Note that the project provided through the PRC2 personal repository will [role:red]*NOT* work without -the settings file above. From February 2020 will use sebipom version 2.3.0 or above. +the settings file above. From February 2020 will use informaticspom version 2.3.0 or above. diff --git a/topics/gettingstarted.adoc b/topics/gettingstarted.adoc index b7e3544..a873325 100644 --- a/topics/gettingstarted.adoc +++ b/topics/gettingstarted.adoc @@ -460,7 +460,7 @@ We use NetBeans IDE as default. We might not be able to answer any support quest //include::configuringmaven.adoc[] -//include::sebipom.adoc[] +//include::informaticspom.adoc[] == Additional Pointers diff --git a/topics/informaticspom.adoc b/topics/informaticspom.adoc index 338d144..5294b58 100644 --- a/topics/informaticspom.adoc +++ b/topics/informaticspom.adoc @@ -34,7 +34,7 @@ Note that we are using a _separately installed_ maven (3.9.6 at the time of writ If you want to use informaticspom in your own project, copy the parent definition into your project's pom file. Add additional dependencies as required. // [[basic-maven]] -// .Basic pom.xml file setting sebipom as parent. +// .Basic pom.xml file setting informaticspom as parent. // [source,xml] // ---- // @@ -42,7 +42,7 @@ If you want to use informaticspom in your own project, copy the parent definitio // 4.0.0 // // nl.fontys.sebivenlo -// sebipom +// informaticspom // 3.0.3 // // @@ -89,28 +89,28 @@ If you want to use informaticspom in your own project, copy the parent definitio // === Using the SeBiPom in your own projects // To use the test libraries and other goodies that will be used throughout our course, -// you should add the `sebipom` as parent. +// you should add the `informaticspom` as parent. -// Modify the pom.xml file in your project to include sebipom as parent by adding -// these lines in the previous section <>. +// Modify the pom.xml file in your project to include informaticspom as parent by adding +// these lines in the previous section <>. // [TIP] // ==== -// As of 2021-04-03, sebipom reached version 3.0.3. Not all projects may have this version number for -// the parent sebipom. We improve as we go, sometimes because of tips we receive from our students, you for instance. +// As of 2021-04-03, informaticspom reached version 3.0.3. Not all projects may have this version number for +// the parent informaticspom. We improve as we go, sometimes because of tips we receive from our students, you for instance. // Anyway, if the version is not at the newest, set it to the newest and rebuild. // Revisit this part of the site to check the latest version number or look in the -// https://www.fontysvenlo.org/repository/nl/fontys/sebivenlo/sebipom/[fontysvenlo maven reposity] -// for the sebipom version. + +// https://www.fontysvenlo.org/repository/nl/fontys/sebivenlo/informaticspom/[fontysvenlo maven reposity] +// for the informaticspom version. + // Sebipom 3.0.3 enables testing for modular projects but does not enforce modular projects. -// * The source code of sebipom lives at github in https://github.com/sebivenlo/sebipom[sebivenlo/sebipom]. +// * The source code of informaticspom lives at github in https://github.com/sebivenlo/informaticspom[sebivenlo/informaticspom]. // ==== // === Upgrade all projects with one command -// Since sebipom is a somewhat moving target, you may have to update the parent pom of the projects that depend on it. All PRC2 projects do. +// Since informaticspom is a somewhat moving target, you may have to update the parent pom of the projects that depend on it. All PRC2 projects do. // This oneliner will do that for all projects below the current directory. After navigating to the parent of all such projects, do this in the shell: // [source,sh] diff --git a/topics/jpms.adoc b/topics/jpms.adoc index 5ab0592..e8276aa 100644 --- a/topics/jpms.adoc +++ b/topics/jpms.adoc @@ -287,7 +287,7 @@ Because this happens during testing, surefire is instructed to tell the jvm (jav open those packages to the world. The snippet from the maven pom file that realizes that is given below. You can copy and adapt it for your own purposes. -.sebipom project with surefire.opens property to open op required packages for testing. Requires sebipom >= 3.0.2 +.informaticspom project with surefire.opens property to open op required packages for testing. Requires informaticspom >= 3.0.2 [source,xml] ---- @@ -302,7 +302,7 @@ and adapt it for your own purposes. ---- -<1> We are adding a property for the surefire plugin which is picked up by sebipom. +<1> We are adding a property for the surefire plugin which is picked up by informaticspom. <2> In particular the arguments that are passed to the JVM that runs the tests, which appends *--add-opens* commands for all packages that require unit tests. <3> Other properties are left out for brevity. diff --git a/topics/sebipom.adoc b/topics/sebipom.adoc index 737f08f..257c2d3 100644 --- a/topics/sebipom.adoc +++ b/topics/sebipom.adoc @@ -1,12 +1,12 @@ == Sebipom 3.0.3 -Spelled all lower case: `sebipom`, is a super pom to use in Fontys Venlo projects. It keeps your own pom.xml file simple and focused to declare just the -dependencies needed. Niceties to do proper Test Driver Development are provided for in the sebipom definitions, including things as being able to create +Spelled all lower case: `informaticspom`, is a super pom to use in Fontys Venlo projects. It keeps your own pom.xml file simple and focused to declare just the +dependencies needed. Niceties to do proper Test Driver Development are provided for in the informaticspom definitions, including things as being able to create javadoc in a professional looking way, including code highlighted code snippets, checkstyle, reporting, code coverage with maven, pmd, spotbugs etc. -https://github.com/sebivenlo/sebipom[Sebipom is hosted on github]. +https://github.com/sebivenlo/informaticspom[Sebipom is hosted on github]. -* sebipom declares no dependencies other than those for dynamic (e.g. JUnit, AssertJ etc) and static *testing* in the form of plugins and their configuration. +* informaticspom declares no dependencies other than those for dynamic (e.g. JUnit, AssertJ etc) and static *testing* in the form of plugins and their configuration. This way of using maven, having a [blue]#super# or parent pom defined globally (in a repository, not on a local path), is the [big black]#modern# usage. It can be seen in well known big java projects such as https://spring.io/projects/spring-boot[Spring Boot] and https://quarkus.io/[quarkus], to name two contenders in the java-web technology world. @@ -19,13 +19,13 @@ Note that we are using a _separately installed_ maven (3.6.3 at the time of writ [big]_Our tests will [blue]#always# use maven, not some IDE. There is no gnome inside the build server to move the mouse._ ==== -[[sebipom-as-parent]] -.Setting sebipom as parent. +[[informaticspom-as-parent]] +.Setting informaticspom as parent. [source,xml] ---- nl.fontys.sebivenlo - sebipom + informaticspom 3.0.3 // @@ -35,11 +35,11 @@ Note that we are using a _separately installed_ maven (3.6.3 at the time of writ All of the starter projects we provide already use this parent in some version. To get those working, apply the settings show in the paragraph <>. -If you want to use sebipom in your own project, either copy the parent definition into the pom file or start by replacing the NetBeans provided pom.xml file in your project by +If you want to use informaticspom in your own project, either copy the parent definition into the pom file or start by replacing the NetBeans provided pom.xml file in your project by the basic one below. Add dependencies as required. [[basic-maven]] -.Basic pom.xml file setting sebipom as parent. +.Basic pom.xml file setting informaticspom as parent. [source,xml] ---- @@ -47,7 +47,7 @@ the basic one below. Add dependencies as required. 4.0.0 nl.fontys.sebivenlo - sebipom + informaticspom 3.0.3 @@ -94,28 +94,28 @@ image::fx-profile-nb.png[] === Using the SeBiPom in your own projects To use the test libraries and other goodies that will be used throughout our course, -you should add the `sebipom` as parent. +you should add the `informaticspom` as parent. -Modify the pom.xml file in your project to include sebipom as parent by adding -these lines in the previous section <>. +Modify the pom.xml file in your project to include informaticspom as parent by adding +these lines in the previous section <>. [TIP] ==== -As of 2021-04-03, sebipom reached version 3.0.3. Not all projects may have this version number for -the parent sebipom. We improve as we go, sometimes because of tips we receive from our students, you for instance. +As of 2021-04-03, informaticspom reached version 3.0.3. Not all projects may have this version number for +the parent informaticspom. We improve as we go, sometimes because of tips we receive from our students, you for instance. Anyway, if the version is not at the newest, set it to the newest and rebuild. Revisit this part of the site to check the latest version number or look in the -https://www.fontysvenlo.org/repository/nl/fontys/sebivenlo/sebipom/[fontysvenlo maven reposity] -for the sebipom version. + +https://www.fontysvenlo.org/repository/nl/fontys/sebivenlo/informaticspom/[fontysvenlo maven reposity] +for the informaticspom version. + Sebipom 3.0.3 enables testing for modular projects but does not enforce modular projects. -* The source code of sebipom lives at github in https://github.com/sebivenlo/sebipom[sebivenlo/sebipom]. +* The source code of informaticspom lives at github in https://github.com/sebivenlo/informaticspom[sebivenlo/informaticspom]. ==== === Upgrade all projects with one command -Since sebipom is a somewhat moving target, you may have to update the parent pom of the projects that depend on it. All PRC2 projects do. +Since informaticspom is a somewhat moving target, you may have to update the parent pom of the projects that depend on it. All PRC2 projects do. This oneliner will do that for all projects below the current directory. After navigating to the parent of all such projects, do this in the shell: [source,sh] From b828a73e53508668a99924ac8ecfb57d28b55654 Mon Sep 17 00:00:00 2001 From: Pieter van den Hombergh Date: Tue, 20 Feb 2024 23:33:57 +0100 Subject: [PATCH 2/4] remove all mentions of sebipom --- static/images/mavenmodules.svg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/static/images/mavenmodules.svg b/static/images/mavenmodules.svg index faf6b6e..40e5baa 100644 --- a/static/images/mavenmodules.svg +++ b/static/images/mavenmodules.svg @@ -15,7 +15,7 @@ >modular pojectext deps (e.g. sebidao, sebipom)(e.g. sebidao, informaticspom) Date: Tue, 20 Feb 2024 23:46:05 +0100 Subject: [PATCH 3/4] remove all mentions of sebipom --- static/images/mavenmodules.uxf | 278 +++++++++++++++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 static/images/mavenmodules.uxf diff --git a/static/images/mavenmodules.uxf b/static/images/mavenmodules.uxf new file mode 100644 index 0000000..3a683f1 --- /dev/null +++ b/static/images/mavenmodules.uxf @@ -0,0 +1,278 @@ + + + 10 + + UMLClass + + 80 + 70 + 140 + 130 + + Parent +-- +entities +db +applogic +ui +restsever +integration-test + + + + UMLClass + + 440 + 200 + 100 + 30 + + ui + + + + UMLClass + + 290 + 200 + 100 + 30 + + app-logic + + + + UMLClass + + 290 + 140 + 100 + 30 + + entities + + + + UMLClass + + 410 + 100 + 100 + 30 + + rest-server + + + + UMLClass + + 300 + 50 + 100 + 30 + + db + + + + Relation + + 330 + 70 + 30 + 90 + + lt=<. + 10.0;70.0;10.0;10.0 + + + Relation + + 390 + 60 + 90 + 60 + + lt=<. + 10.0;10.0;70.0;40.0 + + + Relation + + 380 + 120 + 100 + 50 + + lt=<. + 10.0;30.0;80.0;10.0 + + + Relation + + 330 + 160 + 30 + 60 + + lt=<. + 10.0;10.0;10.0;40.0 + + + Relation + + 380 + 200 + 80 + 30 + + lt=<. + 10.0;10.0;60.0;10.0 + + + UMLClass + + 60 + 320 + 250 + 90 + + ext deps +(e.g. sebidao, informaticspom) +bg=#aaaaaa + + + + Relation + + 210 + 50 + 110 + 80 + + lt=<. + 10.0;60.0;90.0;10.0 + + + Relation + + 210 + 120 + 100 + 50 + + lt=<. + 10.0;10.0;80.0;30.0 + + + Relation + + 210 + 100 + 220 + 40 + + lt=<. + 10.0;20.0;200.0;10.0 + + + Relation + + 210 + 150 + 100 + 80 + + lt=<. + 10.0;10.0;80.0;60.0 + + + Relation + + 210 + 180 + 280 + 110 + + lt=<. + 10.0;10.0;90.0;90.0;180.0;90.0;260.0;50.0 + + + Relation + + 120 + 190 + 50 + 150 + + lt=<. + 10.0;130.0;30.0;10.0 + + + UMLPackage + + 20 + 20 + 600 + 270 + + modular poject + + + + Relation + + 380 + 150 + 90 + 70 + + lt=<. + 10.0;10.0;70.0;50.0 + + + UMLClass + + 500 + 140 + 100 + 50 + + integration +test + + + + Relation + + 500 + 100 + 80 + 60 + + lt=<. + 10.0;10.0;60.0;10.0;60.0;40.0 + + + Relation + + 380 + 150 + 140 + 30 + + lt=<. + 10.0;10.0;120.0;10.0 + + + Relation + + 390 + 50 + 210 + 110 + + lt=<. + 10.0;10.0;190.0;10.0;190.0;90.0 + + From 09447a035829ce61f909ed4ff5a3cf6d14a69086 Mon Sep 17 00:00:00 2001 From: Pieter van den Hombergh Date: Wed, 21 Feb 2024 00:23:15 +0100 Subject: [PATCH 4/4] folded lines --- topics/arrangeactassert.adoc | 7 ++++--- topics/assertjexamples.adoc | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/topics/arrangeactassert.adoc b/topics/arrangeactassert.adoc index cbf9434..5a664dc 100644 --- a/topics/arrangeactassert.adoc +++ b/topics/arrangeactassert.adoc @@ -65,10 +65,11 @@ to generate a non-existing generic class, create two instance with different typ .complete a generic [source,java] ---- -Box sb= new Box(); // compiler complains about nonexisting Box class. -Box ib= new Box(); // compiler complains about nonexisting Box class. +// on the next line the compiler complains about nonexisting Box class. +Box sb= new Box(); +// on the next line the compiler complains about nonexisting Box class. +Box ib= new Box(); // now you can let the IDE to follow its urge to do the typing for you. - ---- The same applies to methods. If you want a specific return type, provide that in a declaration where you specify such type. diff --git a/topics/assertjexamples.adoc b/topics/assertjexamples.adoc index c03a63a..db991b1 100644 --- a/topics/assertjexamples.adoc +++ b/topics/assertjexamples.adoc @@ -17,7 +17,7 @@ We try to use the latest stable version of AssertJ and Junit 5. [TIP] ==== -Either use informaticspom version 3.0.0 and up or add assertj.core to your test dependencies. +Either use informaticspom version 1.3 and up or add assertj.core to your test dependencies. ==== === Simple Tests @@ -56,7 +56,7 @@ Quiz: what is the difference between the two here: equals and same? [TIP] ==== To follow along, tweak your IDE. Make sure you have the link:/prc2/pages/tips.html#_adding_your_own_code_templates_to_netbeans_ide[code template] to create a test method. -Note that the template adds a *fail* line, which should be disabled once the test and the business code agree. +Note that the template adds a [red]*fail* line, which should be disabled once the test and the business code agree. ==== === String Containment @@ -64,7 +64,7 @@ Note that the template adds a *fail* line, which should be disabled once the tes .test string containment [source,java] ---- - Student student = .... + // Student student = .... assertThat( student.toString() ) .isNotNull() // <1>