Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize all test sites and fix tests to look at new sections / ids #734

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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