diff --git a/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlsanitycheck/maven/it/MavenIT.java b/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlsanitycheck/maven/it/MavenIT.java deleted file mode 100644 index e3dfd6f4..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlsanitycheck/maven/it/MavenIT.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.aim42.htmlsanitycheck.maven.it; - -import com.soebes.itf.jupiter.extension.MavenGoal; -import com.soebes.itf.jupiter.extension.MavenJupiterExtension; -import com.soebes.itf.jupiter.extension.MavenTest; -import com.soebes.itf.jupiter.maven.MavenExecutionResult; - -import static com.soebes.itf.extension.assertj.MavenITAssertions.assertThat; - -@MavenJupiterExtension -public class MavenIT { - - - @MavenTest - @MavenGoal("compile") - void sunshine(MavenExecutionResult result) { - assertThat(result).isSuccessful(); - } - - - @MavenTest - @MavenGoal("compile") - void rain(MavenExecutionResult result) { - assertThat(result).isSuccessful(); - assertThat(result).out().info().contains("2 missing image files found."); - assertThat(result).out().info().contains("image \"./images/missing-image-urjk8ybepw8.jpg\" missing"); - assertThat(result).out().info().contains("data-URI image missing"); - assertThat(result).out().info().contains("id \"some-anchor\" has 2 definitions."); - assertThat(result).out().info().contains("link target \"24mia\" missing"); - assertThat(result).out().info().contains("link target \"Cross-References\" missing"); - } - -} diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/pom.xml b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/pom.xml deleted file mode 100644 index 8499e337..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - doc-test-docs - org.aim42 - 0.1-SNAPSHOT - - - - - org.aim42.htmlSanityCheck - htmlSanityCheck-maven-plugin - ${version} - - - compile - - sanity-check - - - - - - src/file-to-test.html - - src - - - - - - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/settings.xml b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/settings.xml deleted file mode 100644 index 6d29c744..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/settings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - .m2 - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc deleted file mode 100644 index f3a9927e..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc +++ /dev/null @@ -1,97 +0,0 @@ -= Test File for HTML Sanity Check - - -== Image Directory Setting -Via the following directive, the image directory is set to "./images": - ----- -:imagesdir: ./images ----- -:imagesdir: ./images - - -== What is tested here - -This file serves as _smoketest_ for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output: - -* Broken cross reference (missing link target for internal link). See section <>. -* <> -* <> (dupliate link target) -* Missing local resource (missing link to local file) - - - -== Cross-References, a.k.a. _Internal Links_ - - -* A link to the subheading below: <>. -* A second link, but <<24mia, misspelled>> - - -This plugin has been created in context of the <> project - - -[[aim42]] -=== aim42 Architecture Improvement - - -[[Missing-Images]] -== Missing Images -One image from the image directory - created with this asciidoc: ----- -image::aim42.png["alternate-text", title="aim42-logo", width="150"] ----- - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - - -=== A Missing Image - -Another image tag - but this image (with the strange name) -does not exist in the file system: ----- -image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] ----- -image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] - -=== A data:image - -In this case, an inline image (data:uri) is generated by setting the switch `:data-uri:` - -:data-uri: - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - -image::missing-image-urjk8ybepw8.jpg["alternate-text", title="aim42-logo", width="150"] - -The resulting image is fully contained within the generated HTML and thus needs no additional check. - -[[Duplicate-Id]] -== Duplicate ID's or Bookmarks - -In Asciidoc, ID's are defined using double brackets ----- -[[some-anchor]] ----- -One can <> those id's/bookmarks -with <> directive in asciidoc. - -[[some-anchor]] -In this section, we define this id: -.... -[[some-anchor]] -.... - -for the first time. -Where will the browser jump to, if we <> - - -[[some-anchor]] -=== Second definition -In this section, we define it the second time. - - -== External Links -(to be done) diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html deleted file mode 100644 index 2f989bdd..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html +++ /dev/null @@ -1,607 +0,0 @@ - - - - - - - -Test File for HTML Sanity Check - - - - - -
-
-

Image Directory Setting

-
-
-

Via the following directive, the image directory is set to "./images":

-
-
-
-
:imagesdir: ./images
-
-
-
-
-
-

What is tested here

-
-
-

This file serves as smoketest for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output:

-
-
- -
-
-
-
- -
-
-
    -
  • -

    A link to the subheading below: title.

    -
  • -
  • -

    A second link, but misspelled

    -
  • -
-
-
-

This plugin has been created in context of the aim42 Architecture Improvement project

-
-
-

aim42 Architecture Improvement

- -
-
-
-
-

Missing Images

-
-
-

One image from the image directory - created with this asciidoc:

-
-
-
-
image::aim42.png["alternate-text", title="aim42-logo", width="150"]
-
-
-
-
-alternate-text -
-
Figure 1. aim42-logo
-
-
-

A Missing Image

-
-

Another image tag - but this image (with the strange name) -does not exist in the file system:

-
-
-
-
image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"]
-
-
-
-
-missing…​ -
-
Figure 2. missing-image
-
-
-
-

A data:image

-
-

In this case, an inline image (data:uri) is generated by setting the switch :data-uri:

-
-
-
-alternate-text -
-
Figure 3. aim42-logo
-
-
-
-alternate-text -
-
Figure 4. aim42-logo
-
-
-

The resulting image is fully contained within the generated HTML and thus needs no additional check.

-
-
-
-
-
-

Duplicate ID’s or Bookmarks

-
-
-

In Asciidoc, ID’s are defined using double brackets

-
-
-
-
[[some-anchor]]
-
-
-
-

One can reference those id’s/bookmarks -with [some-anchor] directive in asciidoc.

-
-
-

In this section, we define this id:

-
-
-
-
[[some-anchor]]
-
-
-
-

for the first time. -Where will the browser jump to, if we click here?

-
-
-

Second definition

-
-

In this section, we define it the second time.

-
-
-
-
-
- -
-
-

(to be done)

-
-
-
-
- - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/images/aim42.png b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/images/aim42.png deleted file mode 100644 index 90b120b1..00000000 Binary files a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/images/aim42.png and /dev/null differ diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/pom.xml b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/pom.xml deleted file mode 100644 index 8499e337..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - doc-test-docs - org.aim42 - 0.1-SNAPSHOT - - - - - org.aim42.htmlSanityCheck - htmlSanityCheck-maven-plugin - ${version} - - - compile - - sanity-check - - - - - - src/file-to-test.html - - src - - - - - - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/settings.xml b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/settings.xml deleted file mode 100644 index 6d29c744..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/settings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - .m2 - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc deleted file mode 100644 index c3973cb4..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc +++ /dev/null @@ -1,87 +0,0 @@ -= Test File for HTML Sanity Check - - -== Image Directory Setting -Via the following directive, the image directory is set to "./images": - ----- -:imagesdir: ./images ----- -:imagesdir: ./images - - -== What is tested here - -This file serves as _smoketest_ for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output: - -* Broken cross reference (missing link target for internal link). -* <> -* <> (dupliate link target) -* Missing local resource (missing link to local file) - - - -== Cross-References, a.k.a. _Internal Links_ - - -* A link to the subheading below: <>. -* A second link, but <> - - -This plugin has been created in context of the <> project - - -[[aim42]] -=== aim42 Architecture Improvement - - -[[Missing-Images]] -== Missing Images -One image from the image directory - created with this asciidoc: ----- -image::aim42.png["alternate-text", title="aim42-logo", width="150"] ----- - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - - - -=== A data:image - -In this case, an inline image (data:uri) is generated by setting the switch `:data-uri:` - -:data-uri: - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - -image::missing-image-urjk8ybepw8.jpg["alternate-text", title="aim42-logo", width="150"] - -The resulting image is fully contained within the generated HTML and thus needs no additional check. - -[[Duplicate-Id]] -== Duplicate ID's or Bookmarks - -In Asciidoc, ID's are defined using double brackets ----- -[[some-anchor]] ----- -One can <> those id's/bookmarks -with <> directive in asciidoc. - -[[some-anchor]] -In this section, we define this id: -.... -[[some-anchor]] -.... - -for the first time. -Where will the browser jump to, if we <> - -=== Second definition -In this section, we define it the second time. - - -== External Links -(to be done) diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html deleted file mode 100644 index cfbe1676..00000000 --- a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html +++ /dev/null @@ -1,593 +0,0 @@ - - - - - - - -Test File for HTML Sanity Check - - - - - -
-
-

Image Directory Setting

-
-
-

Via the following directive, the image directory is set to "./images":

-
-
-
-
:imagesdir: ./images
-
-
-
-
-
-

What is tested here

-
-
-

This file serves as smoketest for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output:

-
-
- -
-
-
-
- -
-
-
    -
  • -

    A link to the subheading below: title.

    -
  • -
  • -

    A second link, but misspelled

    -
  • -
-
-
-

This plugin has been created in context of the aim42 Architecture Improvement project

-
-
-

aim42 Architecture Improvement

- -
-
-
-
-

Missing Images

-
-
-

One image from the image directory - created with this asciidoc:

-
-
-
-
image::aim42.png["alternate-text", title="aim42-logo", width="150"]
-
-
-
-
-alternate-text -
-
Figure 1. aim42-logo
-
-
-

A data:image

-
-

In this case, an inline image (data:uri) is generated by setting the switch :data-uri:

-
-
-
-alternate-text -
-
Figure 2. aim42-logo
-
-
-
-alternate-text -
-
Figure 3. aim42-logo
-
-
-

The resulting image is fully contained within the generated HTML and thus needs no additional check.

-
-
-
-
-
-

Duplicate ID’s or Bookmarks

-
-
-

In Asciidoc, ID’s are defined using double brackets

-
-
-
-
[[some-anchor]]
-
-
-
-

One can reference those id’s/bookmarks -with [some-anchor] directive in asciidoc.

-
-
-

In this section, we define this id:

-
-
-
-
[[some-anchor]]
-
-
-
-

for the first time. -Where will the browser jump to, if we click here?

-
-
-

Second definition

-
-

In this section, we define it the second time.

-
-
-
-
-
- -
-
-

(to be done)

-
-
-
-
- - - \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/images/aim42.png b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/images/aim42.png deleted file mode 100644 index 90b120b1..00000000 Binary files a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/images/aim42.png and /dev/null differ diff --git a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/pom.xml b/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/pom.xml deleted file mode 100644 index 98c52a45..00000000 --- a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - 4.0.0 - doc-test-docs - org.aim42 - 0.1-SNAPSHOT - - - - - org.aim42.htmlSanityCheck - htmlSanityCheck-maven-plugin - 2.0.0-rc1 - - - compile - - verify - - - - - - file-to-test.html - - ${project.build.directory}/src - - - - - - - \ No newline at end of file diff --git a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.adoc b/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.adoc deleted file mode 100644 index f3a9927e..00000000 --- a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.adoc +++ /dev/null @@ -1,97 +0,0 @@ -= Test File for HTML Sanity Check - - -== Image Directory Setting -Via the following directive, the image directory is set to "./images": - ----- -:imagesdir: ./images ----- -:imagesdir: ./images - - -== What is tested here - -This file serves as _smoketest_ for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output: - -* Broken cross reference (missing link target for internal link). See section <>. -* <> -* <> (dupliate link target) -* Missing local resource (missing link to local file) - - - -== Cross-References, a.k.a. _Internal Links_ - - -* A link to the subheading below: <>. -* A second link, but <<24mia, misspelled>> - - -This plugin has been created in context of the <> project - - -[[aim42]] -=== aim42 Architecture Improvement - - -[[Missing-Images]] -== Missing Images -One image from the image directory - created with this asciidoc: ----- -image::aim42.png["alternate-text", title="aim42-logo", width="150"] ----- - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - - -=== A Missing Image - -Another image tag - but this image (with the strange name) -does not exist in the file system: ----- -image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] ----- -image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] - -=== A data:image - -In this case, an inline image (data:uri) is generated by setting the switch `:data-uri:` - -:data-uri: - -image::aim42.png["alternate-text", title="aim42-logo", width="150"] - -image::missing-image-urjk8ybepw8.jpg["alternate-text", title="aim42-logo", width="150"] - -The resulting image is fully contained within the generated HTML and thus needs no additional check. - -[[Duplicate-Id]] -== Duplicate ID's or Bookmarks - -In Asciidoc, ID's are defined using double brackets ----- -[[some-anchor]] ----- -One can <> those id's/bookmarks -with <> directive in asciidoc. - -[[some-anchor]] -In this section, we define this id: -.... -[[some-anchor]] -.... - -for the first time. -Where will the browser jump to, if we <> - - -[[some-anchor]] -=== Second definition -In this section, we define it the second time. - - -== External Links -(to be done) diff --git a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.html b/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.html deleted file mode 100644 index 2f989bdd..00000000 --- a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/file-to-test.html +++ /dev/null @@ -1,607 +0,0 @@ - - - - - - - -Test File for HTML Sanity Check - - - - - -
-
-

Image Directory Setting

-
-
-

Via the following directive, the image directory is set to "./images":

-
-
-
-
:imagesdir: ./images
-
-
-
-
-
-

What is tested here

-
-
-

This file serves as smoketest for kbd:[htmlSC], as it deliberately forces -the (asciidoc) html generator to create the following errors within the html -output:

-
-
- -
-
-
-
- -
-
-
    -
  • -

    A link to the subheading below: title.

    -
  • -
  • -

    A second link, but misspelled

    -
  • -
-
-
-

This plugin has been created in context of the aim42 Architecture Improvement project

-
-
-

aim42 Architecture Improvement

- -
-
-
-
-

Missing Images

-
-
-

One image from the image directory - created with this asciidoc:

-
-
-
-
image::aim42.png["alternate-text", title="aim42-logo", width="150"]
-
-
-
-
-alternate-text -
-
Figure 1. aim42-logo
-
-
-

A Missing Image

-
-

Another image tag - but this image (with the strange name) -does not exist in the file system:

-
-
-
-
image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"]
-
-
-
-
-missing…​ -
-
Figure 2. missing-image
-
-
-
-

A data:image

-
-

In this case, an inline image (data:uri) is generated by setting the switch :data-uri:

-
-
-
-alternate-text -
-
Figure 3. aim42-logo
-
-
-
-alternate-text -
-
Figure 4. aim42-logo
-
-
-

The resulting image is fully contained within the generated HTML and thus needs no additional check.

-
-
-
-
-
-

Duplicate ID’s or Bookmarks

-
-
-

In Asciidoc, ID’s are defined using double brackets

-
-
-
-
[[some-anchor]]
-
-
-
-

One can reference those id’s/bookmarks -with [some-anchor] directive in asciidoc.

-
-
-

In this section, we define this id:

-
-
-
-
[[some-anchor]]
-
-
-
-

for the first time. -Where will the browser jump to, if we click here?

-
-
-

Second definition

-
-

In this section, we define it the second time.

-
-
-
-
-
- -
-
-

(to be done)

-
-
-
-
- - - \ No newline at end of file diff --git a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/images/aim42.png b/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/images/aim42.png deleted file mode 100644 index 90b120b1..00000000 Binary files a/src/test/resources-its/org/aim42/IntegrationTestIT/the_first_test_case/src/images/aim42.png and /dev/null differ