File tree Expand file tree Collapse file tree
integration-faces-tests/src/test/java/org/ocpsoft/rewrite/faces/outbound Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import org .jboss .arquillian .junit .Arquillian ;
55import org .jboss .shrinkwrap .api .spec .WebArchive ;
66import org .junit .Test ;
7+ import org .junit .experimental .categories .Category ;
78import org .junit .runner .RunWith ;
9+ import org .ocpsoft .rewrite .category .IgnoreForGlassfish4 ;
810import org .ocpsoft .rewrite .faces .annotation .RewriteFacesAnnotationsTest ;
911import org .ocpsoft .rewrite .test .RewriteTest ;
1012import org .ocpsoft .rewrite .test .RewriteTestBase ;
1113
1214import com .gargoylesoftware .htmlunit .html .HtmlPage ;
1315
16+ /**
17+ * This test doesn't work on Glassfish 4.0 at all. For some reason Glassfish _always_ appends the JSESSIONID, even if
18+ * the href just contains JavaScript. This leads to links like this:
19+ *
20+ * <pre>
21+ * href = "javascript:void(0);jsessionid=fde6b122b14c03b5ad7dcf4c51b5"
22+ * </pre>
23+ *
24+ * This can be reproduced even in a simple sample application without Rewrite.
25+ */
1426@ RunWith (Arquillian .class )
27+ @ Category (IgnoreForGlassfish4 .class )
1528public class OutboundRewriteHrefJsTest extends RewriteTestBase
1629{
1730
Original file line number Diff line number Diff line change 2222import org .jboss .shrinkwrap .api .spec .WebArchive ;
2323import org .junit .Ignore ;
2424import org .junit .Test ;
25+ import org .junit .experimental .categories .Category ;
2526import org .junit .runner .RunWith ;
27+ import org .ocpsoft .rewrite .category .IgnoreForGlassfish4 ;
2628import org .ocpsoft .rewrite .faces .annotation .RewriteFacesAnnotationsTest ;
2729import org .ocpsoft .rewrite .test .RewriteTest ;
2830import org .ocpsoft .rewrite .test .RewriteTestBase ;
2931
3032import com .gargoylesoftware .htmlunit .html .DomElement ;
3133import com .gargoylesoftware .htmlunit .html .HtmlPage ;
3234
35+ /**
36+ * This test doesn't work on Glassfish 4.0 at all. For some reason Glassfish _always_ appends the JSESSIONID, even if
37+ * the href just contains JavaScript. This leads to links like this:
38+ *
39+ * <pre>
40+ * href = "javascript:void(0);jsessionid=fde6b122b14c03b5ad7dcf4c51b5"
41+ * </pre>
42+ *
43+ * This can be reproduced even in a simple sample application without Rewrite.
44+ */
3345@ RunWith (Arquillian .class )
46+ @ Category (IgnoreForGlassfish4 .class )
3447public class OutboundSpecialCasesTest extends RewriteTestBase
3548{
3649
You can’t perform that action at this time.
0 commit comments