8000 [WINDUPRULE-978] Add new ruleset for web technologies by jmle · Pull Request #939 · windup/windup-rulesets · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[WINDUPRULE-978] Add new ruleset for web technologies #939

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

Merged
merged 6 commits into from
May 15, 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
2 changes: 2 additions & 0 deletions rules-themed/rules-mta/labels/core.windup.label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<tag>SOAP (SAAJ)</tag>
<tag>Stateful (SFSB)</tag>
<tag>Stateless (SLSB)</tag>
<tag>WebSocket</tag>
<tag>WS Metadata</tag>
</supported>
<unsuitable>
Expand Down Expand Up @@ -88,6 +89,7 @@
<tag>JSF Page</tag>
<tag>JSP Page</tag>
<tag>Servlet</tag>
<tag>WebSocket</tag>
</supported>
<unsuitable>
<tag>CDI</tag>
Expand Down
2 changes: 2 additions & 0 deletions rules-themed/rules-mtr/labels/core.windup.label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<tag>SOAP (SAAJ)</tag>
<tag>Stateful (SFSB)</tag>
<tag>Stateless (SLSB)</tag>
<tag>WebSocket</tag>
<tag>WS Metadata</tag>
</supported>
<unsuitable>
Expand Down Expand Up @@ -88,6 +89,7 @@
<tag>JSF Page</tag>
<tag>JSP Page</tag>
<tag>Servlet</tag>
<tag>WebSocket</tag>
</supported>
<unsuitable>
<tag>CDI</tag>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<rulePath>../database-technology-usage.windup.xml</rulePath>
<rulePath>../jta.windup.xml</rulePath>
<rulePath>../jta-technology-usage.windup.xml</rulePath>
<rulePath>../web.windup.xml</rulePath>
<rulePath>../web-technology-usage.windup.xml</rulePath>
<rulePath>../messaging-technology-usage.windup.xml</rulePath>
<rulePath>../http-technology-usage.windup.xml</rulePath>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0"?>
<ruletest id="technology-usage-web-test" xmlns="http://windup.jboss.org/schema/jboss-ruleset">
<testDataPath>data/web/</testDataPath>
<rulePath>../web.windup.xml</rulePath>
<rulePath>../web-technology-usage.windup.xml</rulePath>
<ruleset>
<rules>
<rule id="technology-usage-web-01000-test">
<when>
<not>
<technology-statistics-exists name="JSF Page" number-found="2">
<technology-statistics-exists name="JSF Page" number-found="1">
<tag name="View"/>
<tag name="Web"/>
<tag name="Java EE"/>
Expand Down Expand Up @@ -63,7 +64,7 @@
<rule id="technology-usage-web-01400-test">
<when>
<not>
<technology-statistics-exists name="Applet" number-found="3">
<technology-statistics-exists name="Applet" number-found="2">
<tag name="View"/>
<tag name="Rich"/>
<tag name="Java EE"/>
8000 Expand All @@ -77,7 +78,7 @@
<rule id="technology-usage-web-01500-01600-test">
<when>
<not>
<technology-statistics-exists name="JNLP" number-found="3">
<technology-statistics-exists name="JNLP" number-found="6">
<tag name="View"/>
<tag name="Rich"/>
<tag name="Java EE"/>
Expand Down
174 changes: 174 additions & 0 deletions rules/rules-reviewed/technology-usage/tests/web.windup.test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0"?>
<ruletest id="web-test" xmlns="http://windup.jboss.org/schema/jboss-ruleset">
<testDataPath>data/web/</testDataPath>
<rulePath>../web.windup.xml</rulePath>
<ruleset>
<rules>
<rule id="web-01000-test">
<when>
<not>
<classification-exists classification="Embedded technology - Java Server Faces"/>
<technology-tag-exists technology-tag="JSF"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01000"/>
</perform>
</rule>
<rule id="web-01100-test">
<when>
<not>
<classification-exists classification="Embedded technology - Java Server Pages"/>
<technology-tag-exists technology-tag="JSP"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01100"/>
</perform>
</rule>
<rule id="web-01200-test">
<when>
<not>
<classification-exists classification="Embedded technology - Web XML"/>
<technology-tag-exists technology-tag="WebXML"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01200"/>
</perform>
</rule>
<rule id="web-01300-test">
<when>
<not>
<classification-exists classification="Embedded technology - WebSocket"/>
<technology-tag-exists technology-tag="WebSocket"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01300"/>
</perform>
</rule>
<rule id="web-01400-test">
<when>
<not>
<classification-exists classification="Embedded technology - Applet"/>
<technology-tag-exists technology-tag="Applet"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01400"/>
</perform>
</rule>
<rule id="web-01500-test">
<when>
<not>
<classification-exists classification="Embedded technology - JNLP"/>
<technology-tag-exists technology-tag="JNLP"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01500"/>
</perform>
</rule>
<rule id="web-01600-test">
<when>
<not>
<classification-exists classification="Embedded technology - JNLP"/>
<technology-tag-exists technology-tag="JNLP"/>
</not>
</when>
<perform>
<fail message="Expected d 6D47 ata not found for rule web-01600"/>
</perform>
</rule>
<rule id="web-01700-test">
<when>
<not>
<classification-exists classification="Embedded technology - Swing"/>
<technology-tag-exists technology-tag="Swing"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01700"/>
</perform>
</rule>
<rule id="web-01800-test">
<when>
<not>
<classification-exists classification="Embedded technology - MiGLayout"/>
<technology-tag-exists technology-tag="MiGLayout"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01800"/>
</perform>
</rule>
<rule id="web-01900-test">
<when>
<not>
<classification-exists classification="Embedded technology - JGoodies"/>
<technology-tag-exists technology-tag="JGoodies"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-01900"/>
</perform>
</rule>
<rule id="web-02000-test">
<when>
<not>
<classification-exists classification="Embedded technology - FormLayoutMaker"/>
<technology-tag-exists technology-tag="FormLayoutMaker"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-02000"/>
</perform>
</rule>
<rule id="web-02100-test">
<when>
9E81 <not>
<classification-exists classification="Embedded technology - MagicGroupLayout"/>
<technology-tag-exists technology-tag="MagicGroupLayout"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-02100"/>
</perform>
</rule>
<rule id="web-02200-test">
<when>
<not>
<classification-exists classification="Embedded technology - Standard Widget Toolkit \(SWT\)"/>
<technology-tag-exists technology-tag="SWT"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-02200"/>
</perform>
</rule>
<rule id="web-02300-test">
<when>
<not>
<classification-exists classification="Embedded technology - JavaFX"/>
<technology-tag-exists technology-tag="JavaFX"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-02300"/>
</perform>
</rule>
<rule id="web-02400-test">
<when>
<not>
<classification-exists classification="Embedded technology - Eclipse RCP"/>
<technology-tag-exists technology-tag="Eclipse RCP"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule web-02400"/>
</perform>
</rule>
</rules>
</ruleset>
</ruletest>
Loading
0