Skip to content

Commit

Permalink
Merge pull request #734 from hazendaz/master
Browse files Browse the repository at this point in the history
Modernize all test sites and fix tests to look at new sections / ids
  • Loading branch information
hazendaz authored Dec 26, 2023
2 parents b726efe + 96677e7 commit 67a5a75
Show file tree
Hide file tree
Showing 113 changed files with 4,222 additions and 90 deletions.
53 changes: 53 additions & 0 deletions src/it/MFINDBUGS-145/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
53 changes: 53 additions & 0 deletions src/it/MFINDBUGS-178/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
53 changes: 53 additions & 0 deletions src/it/basic-1/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
3 changes: 1 addition & 2 deletions src/it/basic-1/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ XmlSlurper xhtmlParser = new XmlSlurper();
xhtmlParser.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false)
xhtmlParser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false)
def path = xhtmlParser.parse( spotbugsHtml )
//*[@id="contentBox"]/div[2]/table/tbody/tr[2]/td[2]
int spotbugsErrors = path.body.'**'.find {div -> div.@id == 'contentBox'}.section[1].table.tr[1].td[1].toInteger()
int spotbugsErrors = path.body.'**'.find {main -> main.@id == 'bodyColumn'}.section[1].table.tr[1].td[1].toInteger()
println "Error Count is ${spotbugsErrors}"


Expand Down
53 changes: 53 additions & 0 deletions src/it/change-xml-filename/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
53 changes: 53 additions & 0 deletions src/it/check-bug-file-multi-list/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
53 changes: 53 additions & 0 deletions src/it/check-bug-file-multi/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
53 changes: 53 additions & 0 deletions src/it/check-bug-file/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2023 the original author or authors.
Licensed 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.1 https://maven.apache.org/xsd/decoration-1.8.1.xsd"
name="SpotBugs Maven Plugin">

<bannerLeft>
<name>SpotBugs Maven Plugin</name>
</bannerLeft>

<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.12.0</version>
</skin>

<custom>
<fluidoSkin>
<topBarEnabled>false</topBarEnabled>
<sideBarEnabled>false</sideBarEnabled>
<breadcrumbDivider>»</breadcrumbDivider>
<gitHub>
<projectId>spotbugs/spotbugs-maven-plugin</projectId>
<ribbonOrientation>right</ribbonOrientation>
<ribbonColor>red</ribbonColor>
</gitHub>
<ohloh>
<projectId>spotbugs-maven-plugin</projectId>
<widget>thin-badge</widget>
</ohloh>
</fluidoSkin>
</custom>

<publishDate format="yyyy-MM-dd" position="right"/>
<version position="right"/>

</project>
Loading

0 comments on commit 67a5a75

Please sign in to comment.