This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
The following commit(s) were added to refs/heads/master by this push:
new 17d2f00 Format Groovy IT scripts
17d2f00 is described below
commit 17d2f005afdbbec8c80ce33be48140935b9699ad
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 25 20:32:23 2026 +0000
Format Groovy IT scripts
Formatting only: the CONVERSION-phase AST of every file is unchanged. See
https://github.com/apache/maven-invoker-plugin/issues/811.
---
src/it/menu-series/verify.groovy | 22 +++----
src/it/modification-date/verify.groovy | 10 +--
src/it/mskins-10/verify.groovy | 4 +-
src/it/mskins-107/verify.groovy | 2 +-
src/it/mskins-13/verify.groovy | 8 +--
src/it/mskins-14/verify.groovy | 8 +--
src/it/mskins-143_default/verify.groovy | 8 +--
src/it/mskins-14_sitesearch/verify.groovy | 6 +-
src/it/mskins-16/verify.groovy | 22 +++----
src/it/mskins-161/verify.groovy | 18 +++---
src/it/mskins-17/verify.groovy | 8 +--
src/it/mskins-174/verify.groovy | 4 +-
src/it/mskins-177-apache-analytics/verify.groovy | 16 ++---
src/it/mskins-177-matomo-no-options/verify.groovy | 16 ++---
src/it/mskins-22/verify.groovy | 8 +--
.../mskins-226-anchorjs-no-options/verify.groovy | 6 +-
src/it/mskins-226-anchorjs-options/verify.groovy | 14 +++--
src/it/mskins-23/verify.groovy | 14 ++---
src/it/mskins-24/verify.groovy | 12 ++--
src/it/mskins-24_topbar/verify.groovy | 12 ++--
src/it/mskins-255/verify.groovy | 16 ++---
src/it/mskins-255_default/verify.groovy | 14 ++---
src/it/mskins-323/verify.groovy | 18 +++---
src/it/mskins-33/verify.groovy | 16 ++---
src/it/mskins-33_topbar/verify.groovy | 16 ++---
src/it/mskins-47/verify.groovy | 4 +-
src/it/mskins-72/verify.groovy | 4 +-
src/it/mskins-85/verify.groovy | 4 +-
src/it/sidebar/verify.groovy | 72 ++++++++++++----------
src/it/theme-switch_false/verify.groovy | 10 +--
src/it/topbar-inverse/verify.groovy | 6 +-
src/it/topbar/verify.groovy | 26 ++++----
src/it/verbatim/verify.groovy | 2 +-
33 files changed, 216 insertions(+), 210 deletions(-)
diff --git a/src/it/menu-series/verify.groovy b/src/it/menu-series/verify.groovy
index a5f3b9f..2265a0c 100644
--- a/src/it/menu-series/verify.groovy
+++ b/src/it/menu-series/verify.groovy
@@ -17,25 +17,25 @@
* under the License.
*/
-String page( String path ) {
- new File( basedir, "target/site/" + path ).text
+String page(String path) {
+ new File(basedir, "target/site/" + path).text
}
// a page listed in the menu is marked as the current page
-assert page( "docs/history.html" ).contains( '<li><a class="active"
aria-current="page">History</a></li>' )
-assert !page( "docs/history.html" ).contains( 'aria-current="true"' )
+assert page("docs/history.html").contains('<li><a class="active"
aria-current="page">History</a></li>')
+assert !page("docs/history.html").contains('aria-current="true"')
// an unlisted page in a subdirectory of a listed item's directory marks that
item as part of its series
-String notes = page( "docs/1.0/release-notes.html" )
-assert notes.contains( 'class="active" aria-current="true">History</a></li>' )
-assert !notes.contains( 'aria-current="page"' )
-assert page( "docs/2.0/release-notes.html" ).contains( 'class="active"
aria-current="true">History</a></li>' )
+String notes = page("docs/1.0/release-notes.html")
+assert notes.contains('class="active" aria-current="true">History</a></li>')
+assert !notes.contains('aria-current="page"')
+assert page("docs/2.0/release-notes.html").contains('class="active"
aria-current="true">History</a></li>')
// a page next to the listed item, not below it, marks nothing
-assert !page( "docs/unlisted.html" ).contains( 'class="active"' )
+assert !page("docs/unlisted.html").contains('class="active"')
// a directory that two items point into belongs to neither
-assert !page( "tools/a/details.html" ).contains( 'class="active"' )
+assert !page("tools/a/details.html").contains('class="active"')
// pages at the site root never take a series marker
-assert !page( "index.html" ).contains( 'aria-current="true"' )
+assert !page("index.html").contains('aria-current="true"')
diff --git a/src/it/modification-date/verify.groovy
b/src/it/modification-date/verify.groovy
index 3b26193..d203e9c 100644
--- a/src/it/modification-date/verify.groovy
+++ b/src/it/modification-date/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( '<meta name="dcterms.date" content="2011-10-15"
/>' )
-assert index.text.contains( 'Last Modified: 2026-03-20' )
-File report = new File( basedir, "target/site/plugins.html" )
+assert index.text.contains('<meta name="dcterms.date" content="2011-10-15" />')
+assert index.text.contains('Last Modified: 2026-03-20')
+File report = new File(basedir, "target/site/plugins.html")
assert report.exists()
-assert report.text.contains( 'Last Published: 1990-01-01' )
+assert report.text.contains('Last Published: 1990-01-01')
diff --git a/src/it/mskins-10/verify.groovy b/src/it/mskins-10/verify.groovy
index 613fed9..7d398ea 100644
--- a/src/it/mskins-10/verify.groovy
+++ b/src/it/mskins-10/verify.groovy
@@ -17,6 +17,6 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( 'Generated by Apache Maven Doxia ' )
\ No newline at end of file
+assert index.text.contains('Generated by Apache Maven Doxia ')
\ No newline at end of file
diff --git a/src/it/mskins-107/verify.groovy b/src/it/mskins-107/verify.groovy
index 3c785ee..108065f 100644
--- a/src/it/mskins-107/verify.groovy
+++ b/src/it/mskins-107/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
assert index.text.contains("<meta name=\"generator\" content=\"Apache Maven
Doxia Site Renderer 2.1.0\" />")
diff --git a/src/it/mskins-13/verify.groovy b/src/it/mskins-13/verify.groovy
index f6544c7..f15b8dc 100644
--- a/src/it/mskins-13/verify.groovy
+++ b/src/it/mskins-13/verify.groovy
@@ -17,9 +17,9 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert !index.text.contains( 'Generated by Apache Maven Doxia at' )
+assert !index.text.contains('Generated by Apache Maven Doxia at')
// no side menu, so nothing to collapse or jump to
-assert !index.text.contains( 'sidebarMenu' )
-assert !index.text.contains( 'menu-toggle' )
+assert !index.text.contains('sidebarMenu')
+assert !index.text.contains('menu-toggle')
diff --git a/src/it/mskins-14/verify.groovy b/src/it/mskins-14/verify.groovy
index 7c5e36f..7bc146e 100644
--- a/src/it/mskins-14/verify.groovy
+++ b/src/it/mskins-14/verify.groovy
@@ -19,7 +19,7 @@
// Google Search was removed in 2.2.0: a site.xml that still configures it
builds, without a search form or any link to
// Google, and without the box below the menu that held the form
-String html = new File( basedir, "target/site/index.html" ).text
-assert ( html =~ /class="sidebar-nav[ "]/ ).size() == 1
-assert !html.contains( 'search-form' )
-assert !html.toLowerCase().contains( 'google' )
+String html = new File(basedir, "target/site/index.html").text
+assert (html =~ /class="sidebar-nav[ "]/).size() == 1
+assert !html.contains('search-form')
+assert !html.toLowerCase().contains('google')
diff --git a/src/it/mskins-143_default/verify.groovy
b/src/it/mskins-143_default/verify.groovy
index ee834f8..db763af 100644
--- a/src/it/mskins-143_default/verify.groovy
+++ b/src/it/mskins-143_default/verify.groovy
@@ -19,9 +19,9 @@
// Google Analytics was removed in 2.2.0: a site.xml that still configures it
builds, and no page loads anything from
// Google
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
String html = index.text
-assert !html.contains( 'google-analytics.com' )
-assert !html.contains( 'GoogleAnalyticsObject' )
-assert !html.contains( "ga('create'" )
+assert !html.contains('google-analytics.com')
+assert !html.contains('GoogleAnalyticsObject')
+assert !html.contains("ga('create'")
diff --git a/src/it/mskins-14_sitesearch/verify.groovy
b/src/it/mskins-14_sitesearch/verify.groovy
index c7ee5ab..c9ffc71 100644
--- a/src/it/mskins-14_sitesearch/verify.groovy
+++ b/src/it/mskins-14_sitesearch/verify.groovy
@@ -18,6 +18,6 @@
*/
// Google Search with a sitesearch value, removed in 2.2.0: the site builds
and no page mentions Google
-String html = new File( basedir, "target/site/index.html" ).text
-assert !html.contains( 'search-form' )
-assert !html.toLowerCase().contains( 'google' )
+String html = new File(basedir, "target/site/index.html").text
+assert !html.contains('search-form')
+assert !html.toLowerCase().contains('google')
diff --git a/src/it/mskins-16/verify.groovy b/src/it/mskins-16/verify.groovy
index aecfc17..813a5e6 100644
--- a/src/it/mskins-16/verify.groovy
+++ b/src/it/mskins-16/verify.groovy
@@ -17,22 +17,22 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// no search, social buttons or poweredBy configured: only the menu box, no
empty one below it
-assert ( html =~ /class="sidebar-nav[ "]/ ).size() == 1
-assert !html.contains( 'id="poweredBy"' )
+assert (html =~ /class="sidebar-nav[ "]/).size() == 1
+assert !html.contains('id="poweredBy"')
// no GitHub ribbon and no profile configured: their resources are neither
linked nor copied
-File site = new File( basedir, "target/site" )
-assert !html.contains( 'gh-fork-ribbon' )
-assert !new File( site, "css/gh-fork-ribbon.min.css" ).exists()
-for ( String profile : [ 'pre-release', 'retired', 'sandbox' ] ) {
- assert !new File( site, "images/profiles/${profile}.svg" ).exists()
+File site = new File(basedir, "target/site")
+assert !html.contains('gh-fork-ribbon')
+assert !new File(site, "css/gh-fork-ribbon.min.css").exists()
+for (String profile : ['pre-release', 'retired', 'sandbox']) {
+ assert !new File(site, "images/profiles/${profile}.svg").exists()
}
// banner images without alt: the project name when the banner has no name,
empty when its name gives the text
-assert html.contains( '<a href="http://www.apache.org"><img class="img-fluid"
src="images/apache-maven-project-2.png" alt="Apache Maven Fluido Skin IT,
MSKINS-16" ' )
-assert html.contains( '<a href="http://www.apache.org"><img class="img-fluid"
src="images/apache-maven-project-2.png" alt="" style="width: 473px;height:
93px;border: 1" /> Apache</a>' )
+assert html.contains('<a href="http://www.apache.org"><img class="img-fluid"
src="images/apache-maven-project-2.png" alt="Apache Maven Fluido Skin IT,
MSKINS-16" ')
+assert html.contains('<a href="http://www.apache.org"><img class="img-fluid"
src="images/apache-maven-project-2.png" alt="" style="width: 473px;height:
93px;border: 1" /> Apache</a>')
// a right banner that is a link is not hidden on phones, even with a left
banner
-assert html.contains( '<div id="bannerRight"><p class="m-0 fs-3 fw-bold"><a
href="http://www.apache.org">' )
+assert html.contains('<div id="bannerRight"><p class="m-0 fs-3 fw-bold"><a
href="http://www.apache.org">')
diff --git a/src/it/mskins-161/verify.groovy b/src/it/mskins-161/verify.groovy
index 35b0781..d82aca8 100644
--- a/src/it/mskins-161/verify.groovy
+++ b/src/it/mskins-161/verify.groovy
@@ -17,16 +17,16 @@
* under the License.
*/
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert buildLog.text.contains( '[INFO] BUILD SUCCESS' )
+assert buildLog.text.contains('[INFO] BUILD SUCCESS')
-for ( String module : [ 'sidebar-fb-like-share', 'sidebar-fb-recommend-share',
'topbar-fb-like-share', 'topbar-fb-recommend-share' ] ) {
- String html = new File( basedir, module + '/target/site/index.html' ).text
+for (String module : ['sidebar-fb-like-share', 'sidebar-fb-recommend-share',
'topbar-fb-like-share', 'topbar-fb-recommend-share']) {
+ String html = new File(basedir, module + '/target/site/index.html').text
// Facebook and Twitter buttons were removed: nothing from their hosts is
loaded or rendered
- assert !html.contains( 'connect.facebook.net' )
- assert !html.contains( 'fb-root' )
- assert !html.contains( 'class="fb-like' )
- assert !html.contains( 'platform.twitter.com' )
- assert !html.contains( 'twitter-follow-button' )
+ assert !html.contains('connect.facebook.net')
+ assert !html.contains('fb-root')
+ assert !html.contains('class="fb-like')
+ assert !html.contains('platform.twitter.com')
+ assert !html.contains('twitter-follow-button')
}
diff --git a/src/it/mskins-17/verify.groovy b/src/it/mskins-17/verify.groovy
index aafd811..6095556 100644
--- a/src/it/mskins-17/verify.groovy
+++ b/src/it/mskins-17/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
// position right: the last item of the list on the right of the breadcrumbs
bar, after the version
String html = index.text
-assert html.contains( '<li id="publishDate">Last Published: 1990-01-01</li>' )
-String right = html.substring( html.indexOf( '<ul class="list-unstyled d-flex
flex-wrap column-gap-3 mb-0 ms-md-auto">' ) )
-assert right.indexOf( 'id="projectVersion"' ) < right.indexOf(
'id="publishDate"' )
+assert html.contains('<li id="publishDate">Last Published: 1990-01-01</li>')
+String right = html.substring(html.indexOf('<ul class="list-unstyled d-flex
flex-wrap column-gap-3 mb-0 ms-md-auto">'))
+assert right.indexOf('id="projectVersion"') <right.indexOf('id="publishDate"')
diff --git a/src/it/mskins-174/verify.groovy b/src/it/mskins-174/verify.groovy
index bf7a685..56fe84f 100644
--- a/src/it/mskins-174/verify.groovy
+++ b/src/it/mskins-174/verify.groovy
@@ -17,6 +17,6 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert !index.text.contains( '<div id="breadcrumbs">')
+assert !index.text.contains('<div id="breadcrumbs">')
diff --git a/src/it/mskins-177-apache-analytics/verify.groovy
b/src/it/mskins-177-apache-analytics/verify.groovy
index 7112448..8ad5d52 100644
--- a/src/it/mskins-177-apache-analytics/verify.groovy
+++ b/src/it/mskins-177-apache-analytics/verify.groovy
@@ -17,12 +17,12 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( 'var u=\"https://analytics.apache.org\";')
-assert index.text.contains( '_paq.push([\'setSiteId\', \'3\']);')
-assert index.text.contains( '_paq.push([\'setTrackerUrl\',
u+\'/matomo.php\']');
-assert index.text.contains( '_paq.push([\'disableCookies\']);')
-assert index.text.contains( '_paq.push([\'trackPageView\']);')
-assert index.text.contains( '_paq.push([\'enableLinkTracking\']);')
-assert index.text.contains( '_paq.push([\'foo\', \'Bar\']);')
\ No newline at end of file
+assert index.text.contains('var u=\"https://analytics.apache.org\";')
+assert index.text.contains('_paq.push([\'setSiteId\', \'3\']);')
+assert index.text.contains('_paq.push([\'setTrackerUrl\', u+\'/matomo.php\']')
+assert index.text.contains('_paq.push([\'disableCookies\']);')
+assert index.text.contains('_paq.push([\'trackPageView\']);')
+assert index.text.contains('_paq.push([\'enableLinkTracking\']);')
+assert index.text.contains('_paq.push([\'foo\', \'Bar\']);')
\ No newline at end of file
diff --git a/src/it/mskins-177-matomo-no-options/verify.groovy
b/src/it/mskins-177-matomo-no-options/verify.groovy
index 4b4a466..a6a0996 100644
--- a/src/it/mskins-177-matomo-no-options/verify.groovy
+++ b/src/it/mskins-177-matomo-no-options/verify.groovy
@@ -17,12 +17,12 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( 'var u=\"https://matomo.example.com\";')
-assert index.text.contains( '_paq.push([\'setSiteId\', \'X\']);')
-assert index.text.contains( '_paq.push([\'setTrackerUrl\',
u+\'/matomo.php\']');
-assert !index.text.contains( '_paq.push([\'disableCookies\']);')
-assert !index.text.contains( '_paq.push([\'trackPageView\']);')
-assert !index.text.contains( '_paq.push([\'enableLinkTracking\']);')
-assert !index.text.contains( '_paq.push([\'foo\', \'Bar\']);')
+assert index.text.contains('var u=\"https://matomo.example.com\";')
+assert index.text.contains('_paq.push([\'setSiteId\', \'X\']);')
+assert index.text.contains('_paq.push([\'setTrackerUrl\', u+\'/matomo.php\']')
+assert !index.text.contains('_paq.push([\'disableCookies\']);')
+assert !index.text.contains('_paq.push([\'trackPageView\']);')
+assert !index.text.contains('_paq.push([\'enableLinkTracking\']);')
+assert !index.text.contains('_paq.push([\'foo\', \'Bar\']);')
diff --git a/src/it/mskins-22/verify.groovy b/src/it/mskins-22/verify.groovy
index 89c99ed..9524425 100644
--- a/src/it/mskins-22/verify.groovy
+++ b/src/it/mskins-22/verify.groovy
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-File site = new File( basedir, "target/site" )
-String html = new File( site, "index.html" ).text
+File site = new File(basedir, "target/site")
+String html = new File(site, "index.html").text
// the ribbon stylesheet is linked and copied because a GitHub project is
configured
-assert html.contains( '<link rel="stylesheet"
href="./css/gh-fork-ribbon.min.css" />' )
-assert new File( site, "css/gh-fork-ribbon.min.css" ).exists()
+assert html.contains('<link rel="stylesheet"
href="./css/gh-fork-ribbon.min.css" />')
+assert new File(site, "css/gh-fork-ribbon.min.css").exists()
diff --git a/src/it/mskins-226-anchorjs-no-options/verify.groovy
b/src/it/mskins-226-anchorjs-no-options/verify.groovy
index e87484c..5dd6263 100644
--- a/src/it/mskins-226-anchorjs-no-options/verify.groovy
+++ b/src/it/mskins-226-anchorjs-no-options/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( 'anchors.add()')
-assert !index.text.contains( 'anchors.options.')
+assert index.text.contains('anchors.add()')
+assert !index.text.contains('anchors.options.')
diff --git a/src/it/mskins-226-anchorjs-options/verify.groovy
b/src/it/mskins-226-anchorjs-options/verify.groovy
index e97e7a6..97399a1 100644
--- a/src/it/mskins-226-anchorjs-options/verify.groovy
+++ b/src/it/mskins-226-anchorjs-options/verify.groovy
@@ -17,12 +17,14 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert index.text.contains( 'anchors.add("h1, h2, h3, h4, h5")')
-assert index.text.contains( 'anchors.options.class = ".anchor"')
-assert index.text.contains( 'anchors.options.titleText = "foo"')
+assert index.text.contains('anchors.add("h1, h2, h3, h4, h5")')
+assert index.text.contains('anchors.options.class = ".anchor"')
+assert index.text.contains('anchors.options.titleText = "foo"')
// anchor.js is linked and copied because anchorJs is configured
-assert index.text.contains( '<script src="./js/anchor-' )
-assert new File( basedir, "target/site/js" ).list().any { it ==~
/anchor-.*\.min\.js/ }
+assert index.text.contains('<script src="./js/anchor-')
+assert new File(basedir, "target/site/js").list().any {
+ it ==~ /anchor-.*\.min\.js/
+}
diff --git a/src/it/mskins-23/verify.groovy b/src/it/mskins-23/verify.groovy
index 5435a58..8547240 100644
--- a/src/it/mskins-23/verify.groovy
+++ b/src/it/mskins-23/verify.groovy
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-File site = new File( basedir, "target/site" )
-String html = new File( site, "index.html" ).text
+File site = new File(basedir, "target/site")
+String html = new File(site, "index.html").text
// only the image of the configured profile is copied
-assert html.contains( "url('./images/profiles/retired.svg');background-size:
336px 252px;" )
-assert new File( site, "images/profiles/retired.svg" ).exists()
-assert !new File( site, "images/profiles/retired.png" ).exists()
-assert !new File( site, "images/profiles/sandbox.svg" ).exists()
-assert !new File( site, "images/profiles/pre-release.svg" ).exists()
+assert html.contains("url('./images/profiles/retired.svg');background-size:
336px 252px;")
+assert new File(site, "images/profiles/retired.svg").exists()
+assert !new File(site, "images/profiles/retired.png").exists()
+assert !new File(site, "images/profiles/sandbox.svg").exists()
+assert !new File(site, "images/profiles/pre-release.svg").exists()
diff --git a/src/it/mskins-24/verify.groovy b/src/it/mskins-24/verify.groovy
index d14a9dc..c114297 100644
--- a/src/it/mskins-24/verify.groovy
+++ b/src/it/mskins-24/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-String html = new File( basedir, 'target/site/index.html' ).text
+String html = new File(basedir, 'target/site/index.html').text
// Facebook and Twitter buttons were removed: nothing from their hosts is
loaded or rendered
-assert !html.contains( 'connect.facebook.net' )
-assert !html.contains( 'fb-root' )
-assert !html.contains( 'class="fb-like' )
-assert !html.contains( 'platform.twitter.com' )
-assert !html.contains( 'twitter-follow-button' )
+assert !html.contains('connect.facebook.net')
+assert !html.contains('fb-root')
+assert !html.contains('class="fb-like')
+assert !html.contains('platform.twitter.com')
+assert !html.contains('twitter-follow-button')
diff --git a/src/it/mskins-24_topbar/verify.groovy
b/src/it/mskins-24_topbar/verify.groovy
index d14a9dc..c114297 100644
--- a/src/it/mskins-24_topbar/verify.groovy
+++ b/src/it/mskins-24_topbar/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-String html = new File( basedir, 'target/site/index.html' ).text
+String html = new File(basedir, 'target/site/index.html').text
// Facebook and Twitter buttons were removed: nothing from their hosts is
loaded or rendered
-assert !html.contains( 'connect.facebook.net' )
-assert !html.contains( 'fb-root' )
-assert !html.contains( 'class="fb-like' )
-assert !html.contains( 'platform.twitter.com' )
-assert !html.contains( 'twitter-follow-button' )
+assert !html.contains('connect.facebook.net')
+assert !html.contains('fb-root')
+assert !html.contains('class="fb-like')
+assert !html.contains('platform.twitter.com')
+assert !html.contains('twitter-follow-button')
diff --git a/src/it/mskins-255/verify.groovy b/src/it/mskins-255/verify.groovy
index 2278d2f..a4f7592 100644
--- a/src/it/mskins-255/verify.groovy
+++ b/src/it/mskins-255/verify.groovy
@@ -17,15 +17,15 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// the dark theme is Bootstrap's dark colour mode: Auto (follow the OS)
becomes the default, set before the first paint
-assert html.contains( 'data-fluido-theme="auto"' )
-assert html.indexOf( 'js/fluido-theme.js' ) < html.indexOf( '</head>' )
-assert new File( basedir, "target/site/js/fluido-theme.js" ).exists()
+assert html.contains('data-fluido-theme="auto"')
+assert html.indexOf('js/fluido-theme.js') <html.indexOf('</head>')
+assert new File(basedir, "target/site/js/fluido-theme.js").exists()
// no separate dark stylesheet any more
-assert !html.contains( 'dark-theme.css' )
-assert !new File( basedir, "target/site/css/dark-theme.css" ).exists()
+assert !html.contains('dark-theme.css')
+assert !new File(basedir, "target/site/css/dark-theme.css").exists()
// with the dark theme enabled the switch shows (fluido-theme.js unhides it)
in the page tools of the menu
-assert html.contains( '<button type="button" class="theme-switch btn btn-sm
border" title="Theme" aria-label="Theme" hidden>' )
-assert html.indexOf( 'class="theme-switch' ) > html.indexOf(
'id="sidebarMenu"' )
+assert html.contains('<button type="button" class="theme-switch btn btn-sm
border" title="Theme" aria-label="Theme" hidden>')
+assert html.indexOf('class="theme-switch') > html.indexOf('id="sidebarMenu"')
diff --git a/src/it/mskins-255_default/verify.groovy
b/src/it/mskins-255_default/verify.groovy
index 37f995a..a021d95 100644
--- a/src/it/mskins-255_default/verify.groovy
+++ b/src/it/mskins-255_default/verify.groovy
@@ -17,12 +17,12 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// the dark theme is opt-in
-assert !html.contains( 'dark-theme.css' )
-assert !new File( basedir, "target/site/css/dark-theme.css" ).exists()
-assert !html.contains( 'data-bs-theme' )
+assert !html.contains('dark-theme.css')
+assert !new File(basedir, "target/site/css/dark-theme.css").exists()
+assert !html.contains('data-bs-theme')
// and so is the switch: without darkThemeEnabled there is neither a switch
nor the theme script
-assert !html.contains( 'theme-switch' )
-assert !html.contains( 'fluido-theme.js' )
-assert !new File( basedir, "target/site/js/fluido-theme.js" ).exists()
+assert !html.contains('theme-switch')
+assert !html.contains('fluido-theme.js')
+assert !new File(basedir, "target/site/js/fluido-theme.js").exists()
diff --git a/src/it/mskins-323/verify.groovy b/src/it/mskins-323/verify.groovy
index 3646011..4135c38 100644
--- a/src/it/mskins-323/verify.groovy
+++ b/src/it/mskins-323/verify.groovy
@@ -17,16 +17,16 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
-def count = { String pattern -> ( html =~ pattern ).size() }
+String html = new File(basedir, "target/site/index.html").text
+def count = { String pattern -> (html =~ pattern).size() }
// the skin writes the charset of the output encoding, the page cannot declare
a second one
-assert count( /<meta charset=/ ) == 1
-assert html.contains( '<meta charset="UTF-8" />' )
+assert count(/<meta charset=/) == 1
+assert html.contains('<meta charset="UTF-8" />')
// a viewport or generator from the page replaces the skin's own
-assert count( /<meta name="viewport"/ ) == 1
-assert html.contains( 'content="width=device-width, initial-scale=2"' )
-assert count( /<meta name="generator"/ ) == 1
-assert html.contains( '<meta name="generator" content="Hand written" />' )
+assert count(/<meta name="viewport"/) == 1
+assert html.contains('content="width=device-width, initial-scale=2"')
+assert count(/<meta name="generator"/) == 1
+assert html.contains('<meta name="generator" content="Hand written" />')
// everything else from the page head is kept
-assert html.contains( '<meta name="description" content="Meta elements from
the page head" />' )
+assert html.contains('<meta name="description" content="Meta elements from the
page head" />')
diff --git a/src/it/mskins-33/verify.groovy b/src/it/mskins-33/verify.groovy
index 147d1b1..c13a186 100644
--- a/src/it/mskins-33/verify.groovy
+++ b/src/it/mskins-33/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert buildLog.text.contains( '[INFO] BUILD SUCCESS' )
+assert buildLog.text.contains('[INFO] BUILD SUCCESS')
-String html = new File( basedir, 'target/site/index.html' ).text
+String html = new File(basedir, 'target/site/index.html').text
// Facebook and Twitter buttons were removed: nothing from their hosts is
loaded or rendered
-assert !html.contains( 'connect.facebook.net' )
-assert !html.contains( 'fb-root' )
-assert !html.contains( 'class="fb-like' )
-assert !html.contains( 'platform.twitter.com' )
-assert !html.contains( 'twitter-follow-button' )
+assert !html.contains('connect.facebook.net')
+assert !html.contains('fb-root')
+assert !html.contains('class="fb-like')
+assert !html.contains('platform.twitter.com')
+assert !html.contains('twitter-follow-button')
diff --git a/src/it/mskins-33_topbar/verify.groovy
b/src/it/mskins-33_topbar/verify.groovy
index 147d1b1..c13a186 100644
--- a/src/it/mskins-33_topbar/verify.groovy
+++ b/src/it/mskins-33_topbar/verify.groovy
@@ -17,14 +17,14 @@
* under the License.
*/
-File buildLog = new File( basedir, 'build.log' )
+File buildLog = new File(basedir, 'build.log')
assert buildLog.exists()
-assert buildLog.text.contains( '[INFO] BUILD SUCCESS' )
+assert buildLog.text.contains('[INFO] BUILD SUCCESS')
-String html = new File( basedir, 'target/site/index.html' ).text
+String html = new File(basedir, 'target/site/index.html').text
// Facebook and Twitter buttons were removed: nothing from their hosts is
loaded or rendered
-assert !html.contains( 'connect.facebook.net' )
-assert !html.contains( 'fb-root' )
-assert !html.contains( 'class="fb-like' )
-assert !html.contains( 'platform.twitter.com' )
-assert !html.contains( 'twitter-follow-button' )
+assert !html.contains('connect.facebook.net')
+assert !html.contains('fb-root')
+assert !html.contains('class="fb-like')
+assert !html.contains('platform.twitter.com')
+assert !html.contains('twitter-follow-button')
diff --git a/src/it/mskins-47/verify.groovy b/src/it/mskins-47/verify.groovy
index ae82f2a..8911ed4 100644
--- a/src/it/mskins-47/verify.groovy
+++ b/src/it/mskins-47/verify.groovy
@@ -17,6 +17,6 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
-assert !index.text.contains( '$headContent' )
\ No newline at end of file
+assert !index.text.contains('$headContent')
\ No newline at end of file
diff --git a/src/it/mskins-72/verify.groovy b/src/it/mskins-72/verify.groovy
index 73e5e6a..a41701a 100644
--- a/src/it/mskins-72/verify.groovy
+++ b/src/it/mskins-72/verify.groovy
@@ -17,9 +17,9 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
int inceptionYear = 2002
int currentYear = Calendar.getInstance().get(Calendar.YEAR)
assert index.exists()
// copyrightClass pull-right is Bootstrap 5's float-end
-assert index.getText("UTF-8").contains( "<p class=\"float-end\">\u00A9" )
+assert index.getText("UTF-8").contains("<p class=\"float-end\">\u00A9")
diff --git a/src/it/mskins-85/verify.groovy b/src/it/mskins-85/verify.groovy
index ae1db5e..bcd9263 100644
--- a/src/it/mskins-85/verify.groovy
+++ b/src/it/mskins-85/verify.groovy
@@ -17,7 +17,7 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// breadcrumbDivider: Bootstrap's breadcrumb divider, set on the breadcrumbs
list
-assert html.contains( "<ol class=\"breadcrumb mb-0\"
style=\"--bs-breadcrumb-divider: '»';\">" )
+assert html.contains("<ol class=\"breadcrumb mb-0\"
style=\"--bs-breadcrumb-divider: '»';\">")
diff --git a/src/it/sidebar/verify.groovy b/src/it/sidebar/verify.groovy
index ed9b74f..b61d0ca 100644
--- a/src/it/sidebar/verify.groovy
+++ b/src/it/sidebar/verify.groovy
@@ -17,18 +17,18 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
// MSKINS-130 check that html structure is as clean as possible
String html = index.text
// active menu
-assert html.contains( '<li><a class="active"
aria-current="page">About</a></li>' )
+assert html.contains('<li><a class="active"
aria-current="page">About</a></li>')
// inactive menu
-assert html.contains( '<li><a href="summary.html">Summary</a></li>' )
-assert html.contains( '<li><a href="plugins.html">Plugins</a></li>' )
+assert html.contains('<li><a href="summary.html">Summary</a></li>')
+assert html.contains('<li><a href="plugins.html">Plugins</a></li>')
// breadcrumb
-assert html.contains( '<li class="breadcrumb-item"><a
href="https://www.apache.org/">Apache</a></li>' )
+assert html.contains('<li class="breadcrumb-item"><a
href="https://www.apache.org/">Apache</a></li>')
// MSKINS-263 - image without class in banner
assert html.contains('<div id="bannerLeft" class="me-auto"><p class="m-0 fs-3
fw-bold"><a href="../../../"><img class="img-fluid banner-light"
src="../../../images/apache-maven-project-light-theme.svg" alt="Apache Maven
Fluido Skin IT, sidebar layout" style="width: 489px;height: 83px;" /><img
class="img-fluid banner-dark"
src="../../../images/apache-maven-project-dark-theme.svg" alt="Apache Maven
Fluido Skin IT, sidebar layout" style="width: 489px;height: 83px;"
/></a></p></div>')
@@ -36,52 +36,56 @@ assert html.contains('<div id="bannerLeft"
class="me-auto"><p class="m-0 fs-3 fw
assert html.contains('<div id="bannerRight" class="d-none d-md-block"><img
class="img-fluid" src="../../../images/logos/MavenLogoLeaf.svg" alt=""
style="width: 340px;height: 83px;" /></div>')
// below 992 px the side menu is open above the content; a button, hidden
until fluido.js shows it, hides and shows it
-assert html.contains( '<div id="sidebarMenu" class="sidebar-menu mb-3">' )
-assert !html.contains( 'offcanvas' )
+assert html.contains('<div id="sidebarMenu" class="sidebar-menu mb-3">')
+assert !html.contains('offcanvas')
// the button is the first thing in the banner row, controls the menu, starts
expanded and needs no Bootstrap script
assert html =~ /<div id="banner" class="navbar[^"]*">\s*<button type="button"
class="navbar-toggler menu-toggle d-lg-none[^"]*" aria-controls="sidebarMenu"
aria-expanded="true" aria-label="Menu" hidden>/
-assert !( html =~ /class="navbar-toggler menu-toggle[^>]*data-bs-toggle/ )
+assert !(html =~ /class="navbar-toggler menu-toggle[^>]*data-bs-toggle/)
// nothing remembers the menu's state
-def fluidoJs = new File( basedir, "target/site/js" ).listFiles().find {
it.name.startsWith( 'apache-maven-fluido-' ) }
-assert fluidoJs != null && fluidoJs.text.contains( 'menu-hidden' ) &&
!fluidoJs.text.contains( 'localStorage' )
+def fluidoJs = new File(basedir, "target/site/js").listFiles().find {
+ it.name.startsWith('apache-maven-fluido-')
+}
+assert fluidoJs != null && fluidoJs.text.contains('menu-hidden') &&
!fluidoJs.text.contains('localStorage')
// Bootstrap 5 stylesheet and script bundle, no jQuery
-assert html.contains( '<link rel="stylesheet"
href="./css/bootstrap-5.3.8.min.css" />' )
-assert new File( basedir, "target/site/css/bootstrap-5.3.8.min.css" ).exists()
-assert !html.contains( 'jquery' )
-assert new File( basedir, "target/site/js/bootstrap-5.3.8.bundle.min.js"
).exists()
+assert html.contains('<link rel="stylesheet"
href="./css/bootstrap-5.3.8.min.css" />')
+assert new File(basedir, "target/site/css/bootstrap-5.3.8.min.css").exists()
+assert !html.contains('jquery')
+assert new File(basedir,
"target/site/js/bootstrap-5.3.8.bundle.min.js").exists()
// default columns: Bootstrap 5 grid, the menu first in the source so that it
is open above the content on phones
-assert html.contains( '<main id="bodyColumn" class="col-lg-9 col-xl-10">' )
-assert html.contains( '<header id="leftColumn" class="col-lg-3 col-xl-2">' )
-assert html.indexOf( 'id="leftColumn"' ) < html.indexOf( 'id="bodyColumn"' )
+assert html.contains('<main id="bodyColumn" class="col-lg-9 col-xl-10">')
+assert html.contains('<header id="leftColumn" class="col-lg-3 col-xl-2">')
+assert html.indexOf('id="leftColumn"') <html.indexOf('id="bodyColumn"')
// the dark theme is not enabled: no theme switch, no theme script, the page
stays light
-assert !html.contains( 'theme-switch' )
-assert !html.contains( 'data-fluido-theme=' )
-assert !html.contains( 'fluido-theme.js' )
-assert !new File( basedir, "target/site/js/fluido-theme.js" ).exists()
+assert !html.contains('theme-switch')
+assert !html.contains('data-fluido-theme=')
+assert !html.contains('fluido-theme.js')
+assert !new File(basedir, "target/site/js/fluido-theme.js").exists()
// wide tables scroll in their own focusable box (and stack on phones); code
blocks are focusable too
-String deps = new File( basedir, "target/site/dependencies.html" ).text
-assert deps.contains( '<div class="table-wrap table-responsive"
tabindex="0"><table class="table table-striped">' )
+String deps = new File(basedir, "target/site/dependencies.html").text
+assert deps.contains('<div class="table-wrap table-responsive"
tabindex="0"><table class="table table-striped">')
assert html =~ /<pre tabindex="0" class="prettyprint linenums">/
// report icons that report plugins still reference stay in the skin
-for ( String icon : [ 'error', 'help', 'info', 'success', 'warning' ] ) {
- assert new File( basedir, "target/site/images/icon_${icon}_sml.gif"
).exists()
+for (String icon : ['error', 'help', 'info', 'success', 'warning']) {
+ assert new File(basedir,
"target/site/images/icon_${icon}_sml.gif").exists()
}
// the Edit icon sits at the top of the menu
assert html =~ /<div class="page-tools d-flex align-items-center gap-2 mb-2
px-3"><a class="edit-link btn btn-sm border" href="[^"]+"/
// pages listed in sideBarSkipped render without the side menu, the others
keep it
-String summary = new File( basedir, "target/site/summary.html" ).text
-assert !summary.contains( 'id="leftColumn"' )
-assert !summary.contains( 'aria-controls="sidebarMenu"' )
-assert !new File( basedir, "target/site/dependency-info.html" ).text.contains(
'id="leftColumn"' )
-assert html.contains( 'id="leftColumn"' )
-assert new File( basedir, "target/site/plugins.html" ).text.contains(
'id="leftColumn"' )
+String summary = new File(basedir, "target/site/summary.html").text
+assert !summary.contains('id="leftColumn"')
+assert !summary.contains('aria-controls="sidebarMenu"')
+assert !new File(basedir,
"target/site/dependency-info.html").text.contains('id="leftColumn"')
+assert html.contains('id="leftColumn"')
+assert new File(basedir,
"target/site/plugins.html").text.contains('id="leftColumn"')
// a page in a subdirectory is named by its path from the site root
-assert !new File( basedir, "target/site/guide/overview.html" ).text.contains(
'id="leftColumn"' )
+assert !new File(basedir,
"target/site/guide/overview.html").text.contains('id="leftColumn"')
// links reach 4.5:1 on the light tinted boxes too, not only on white
(Bootstrap's own #0d6efd does not)
-def fluidoCss = new File( basedir, "target/site/css" ).listFiles().find {
it.name.startsWith( 'apache-maven-fluido-' ) }
-assert fluidoCss != null && fluidoCss.text.contains( '--bs-link-color:
#0a58ca;' )
+def fluidoCss = new File(basedir, "target/site/css").listFiles().find {
+ it.name.startsWith('apache-maven-fluido-')
+}
+assert fluidoCss != null && fluidoCss.text.contains('--bs-link-color:
#0a58ca;')
diff --git a/src/it/theme-switch_false/verify.groovy
b/src/it/theme-switch_false/verify.groovy
index ef62612..4011f6c 100644
--- a/src/it/theme-switch_false/verify.groovy
+++ b/src/it/theme-switch_false/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// darkThemeEnabled with themeSwitch false: no switch, but the theme script
still follows the OS colour scheme
-assert !html.contains( 'theme-switch' )
-assert html.contains( 'data-fluido-theme="auto"' )
-assert html.indexOf( 'js/fluido-theme.js' ) < html.indexOf( '</head>' )
-assert new File( basedir, "target/site/js/fluido-theme.js" ).exists()
+assert !html.contains('theme-switch')
+assert html.contains('data-fluido-theme="auto"')
+assert html.indexOf('js/fluido-theme.js') <html.indexOf('</head>')
+assert new File(basedir, "target/site/js/fluido-theme.js").exists()
diff --git a/src/it/topbar-inverse/verify.groovy
b/src/it/topbar-inverse/verify.groovy
index 264c9bb..e5402ff 100644
--- a/src/it/topbar-inverse/verify.groovy
+++ b/src/it/topbar-inverse/verify.groovy
@@ -17,10 +17,10 @@
* under the License.
*/
-String html = new File( basedir, "target/site/index.html" ).text
+String html = new File(basedir, "target/site/index.html").text
// navBarStyle navbar-inverse: a dark top bar through Bootstrap's dark colour
mode; the Bootstrap 2 class itself is dropped
assert html =~ /<header id="topbar" class="navbar navbar-expand-lg
bg-body-tertiary border-bottom\s*" data-bs-theme="dark">/
-assert !( html =~ /class="[^"]*navbar-inverse/ )
+assert !(html =~ /class="[^"]*navbar-inverse/)
// topBarIcon: the brand link with its image
-assert html.contains( '<a class="brand navbar-brand" href="index.html"><img
class="img-fluid" src="images/topbar-logo.png" alt="Maven Fluido Skin" />' )
+assert html.contains('<a class="brand navbar-brand" href="index.html"><img
class="img-fluid" src="images/topbar-logo.png" alt="Maven Fluido Skin" />')
diff --git a/src/it/topbar/verify.groovy b/src/it/topbar/verify.groovy
index 4b222c7..4895736 100644
--- a/src/it/topbar/verify.groovy
+++ b/src/it/topbar/verify.groovy
@@ -17,18 +17,18 @@
* under the License.
*/
-File index = new File( basedir, "target/site/index.html" )
+File index = new File(basedir, "target/site/index.html")
assert index.exists()
// MSKINS-130 check that html structure is as clean as possible
String html = index.text
// active menu
-assert html.contains( '<li><a class="dropdown-item">About</a></li>' )
+assert html.contains('<li><a class="dropdown-item">About</a></li>')
// inactive menu
-assert html.contains( '<li><a href="summary.html"
class="dropdown-item">Summary</a></li>' )
-assert html.contains( '<li><a href="plugins.html"
class="dropdown-item">Plugins</a></li>' )
+assert html.contains('<li><a href="summary.html"
class="dropdown-item">Summary</a></li>')
+assert html.contains('<li><a href="plugins.html"
class="dropdown-item">Plugins</a></li>')
// breadcrumb
-assert html.contains( '<li class="breadcrumb-item"><a
href="https://www.apache.org/">Apache</a></li>' )
+assert html.contains('<li class="breadcrumb-item"><a
href="https://www.apache.org/">Apache</a></li>')
// MSKINS-263 - image without class in banner
assert html.contains('<div id="bannerLeft" class="me-auto"><p class="m-0 fs-3
fw-bold"><a href="../../../"><img class="img-fluid banner-light"
src="../../../images/apache-maven-project-light-theme.svg" alt="Apache Maven
Fluido Skin IT, topbar layout" style="width: 489px;height: 83px;" /><img
class="img-fluid banner-dark"
src="../../../images/apache-maven-project-dark-theme.svg" alt="Apache Maven
Fluido Skin IT, topbar layout" style="width: 489px;height: 83px;"
/></a></p></div>')
@@ -38,16 +38,16 @@ assert html.contains('<div id="bannerRight" class="d-none
d-md-block"><img class
// edit link after the page title: the SVG icon, copied with the site
// the page title is not repeated as a crumb; an editable page gets an Edit
icon next to the theme switch
assert html =~ /<a class="edit-link btn btn-sm border"
href="https:\/\/github\.com\/[^"]+" title="Edit" aria-label="Edit">/
-assert !html.contains( 'aria-current="page">Apache Maven Fluido Skin IT' )
-assert new File( basedir, "target/site/images/edit.svg" ).exists()
-assert !new File( basedir, "target/site/images/accessories-text-editor.png"
).exists()
+assert !html.contains('aria-current="page">Apache Maven Fluido Skin IT')
+assert new File(basedir, "target/site/images/edit.svg").exists()
+assert !new File(basedir,
"target/site/images/accessories-text-editor.png").exists()
// no side menu, so nothing to collapse or jump to
-assert !html.contains( 'sidebarMenu' )
-assert !html.contains( 'menu-toggle' )
+assert !html.contains('sidebarMenu')
+assert !html.contains('menu-toggle')
// Bootstrap's navbar: a toggler below 992 px, the menus as Bootstrap
dropdowns, and Bootstrap's script bundle
-assert html.contains( 'data-bs-target="#topbarMenus"' )
+assert html.contains('data-bs-target="#topbarMenus"')
assert html =~ /<a class="nav-link dropdown-toggle" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false">[^<]+<\/a>/
-assert html.contains( '<script src="./js/bootstrap-5.3.8.bundle.min.js"
defer></script>' )
-assert new File( basedir, "target/site/js/bootstrap-5.3.8.bundle.min.js"
).exists()
+assert html.contains('<script src="./js/bootstrap-5.3.8.bundle.min.js"
defer></script>')
+assert new File(basedir,
"target/site/js/bootstrap-5.3.8.bundle.min.js").exists()
diff --git a/src/it/verbatim/verify.groovy b/src/it/verbatim/verify.groovy
index feca105..724645a 100644
--- a/src/it/verbatim/verify.groovy
+++ b/src/it/verbatim/verify.groovy
@@ -21,7 +21,7 @@ private void assertVerbatimHtml(File file) {
assert file.exists()
String html = file.text
// only one snippet with code and linenumbers
- assert (html.count( 'class="prettyprint linenums"' ) == 1)
+ assert (html.count('class="prettyprint linenums"') == 1)
// the other snippet is just verbatim (no code!)
}