You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47af6d9
Browse filesBrowse the repository at this point in the historyBrowse files
Be aware that this should *only* be done for a Tomcat instance that's used exclusively for testing, as the above will make
148
+
the Tomcat installation **totally insecure!**
149
+
150
+
151
+
152
+
153
+
The containers that download and install a server allow you to override the version used, e.g.:
133
154
134
-
* `-Dorg.wildfly=8.1.0.Final`
155
+
* `-wildfly.version=8.1.0.Final`
135
156
136
-
This will change the version from 8.0.0 to 8.1.0.Final for WildFly.
157
+
This will change the version from the current one (e.g. 10.1.0.Final) to 8.1.0.Final for WildFly.
137
158
138
159
* `-Dglassfish.version=4.1`
139
160
140
-
This will change the version from 4.1.1 to 4.1 for GlassFish testing purposes.
161
+
This will change the version from the current one (e.g 4.1.1) to 4.1 for GlassFish testing purposes.
141
162
142
163
Similarly, there are 6 profiles to choose a browser to test on:
143
164
@@ -191,9 +212,8 @@ There is just a bunch of things you should keep in mind before sending a pull re
191
212
192
213
Standard tests are jUnit based - for example [this commit](servlet/servlet-filters/src/test/java/org/javaee7/servlet/filters/FilterServletTest.java). Test classes naming must comply with surefire naming standards `**/*Test.java`, `**/*Test*.java` or `**/*TestCase.java`.
193
214
194
-
However, if you fancy something new, hip and fashionable it is perfectly legal to write Spock specifications as standard JavaEE integration test. For the sake of clarity and consistency, to minimize the upfront complexity, in this project we prefare standard jUnit test. However, some Spock example are provided in the `extra/spock-tests` folder - [like here](extra/spock-tests/src/test/java/org/javaee7/servlet/filters/FilterServletSpecification.groovy). The `spock-tests` project also showcases the Maven configuration. In this particular case the Groovy Specification files are included in the maven test phase if and only if you follow Spock naming convention and give your `Specification` suffix the magic will happen.
215
+
For the sake of clarity and consistency, and to minimize the upfront complexity, we prefer standard jUnit tests using Java, with as additional helpers HtmlUnit, Hamcrest and of course Arquillian. Please don't use alternatives for these technologies. If any new dependency has to be introduced into this project it should provide something that's not covered by these existing dependencies.
195
216
196
-
The extras folder is not included by default, to limit Groovy dependency. If you want to import the extra samples in an Eclipse workspace (including the Spock tests), please install the [Groovy plugins for your Eclipse version](http://groovy.codehaus.org/Eclipse+Plugin) first, then import the sample projects you want using File>Import>Existing Maven Projects.
197
217
198
218
### Some coding principles ###
199
219
@@ -209,9 +229,7 @@ That's it! Welcome in the community!
CI jobs are executed by [Travis](https://travis-ci.org/javaee-samples/javaee7-samples). Note that by the very nature of the samples provided here it's perfectly normal that not all tests pass. This normally would indicate a bug in the server on which the samples are executed. If you think it's really the test that's faulty, then please submit an issue or provide a PR with a fix.
0 commit comments