javaee-samples / javaee7-samples

Java EE 7 Samples
https://travis-ci.org/javaee-samples/javaee7-samples
Other
2.51k stars 1.66k forks source link

Add arquillian tests #22

Open LightGuard opened 11 years ago

LightGuard commented 11 years ago

Adding Arquillian tests would be a huge win the community, so they could see these working on all the other Java EE 7 containers.

With these and the work we've done at http://www.jboss.org/jdf/quickstarts/get-started/ we have quite a bit of both trivial and non-trival examples for people to use, unfortunately they both seem to be vendor specific :( It would be great to collaborate on making fully impl egnostic examples. Perhaps @pmuir would like to help too?

bartoszmajsak commented 10 years ago

I guess this issue is obsolete at this point, right @arun-gupta ? :)

arun-gupta commented 10 years ago

Yes and No :-)

Several samples are converted to Arquillian, but still quite a few remaining. @bartoszmajsak do you want to provide a list of samples that need to be converted to Arquillian ? I can drive another #hackergarten to get them converted.

bartoszmajsak commented 10 years ago

@arun-gupta With pleasure. I will look at the repos and create issues accordingly. Does it sound like a plan?

bartoszmajsak commented 10 years ago

@arun-gupta Would be easier for me with more rights on this repository to be honest (such as labeling issues) :)

bartoszmajsak commented 10 years ago

@arun-gupta At this moment following modules are missing arquillian tests:

batch/batch-listeners
cdi/beanmanager
cdi/built-in
cdi/exclude-filter
cdi/extension
cdi/extension-impl
cdi/pkg-level
cdi/scopes
cdi/vetoed
concurrency/dynamicproxy
concurrency/managedscheduledexecutor
concurrency/managedthreadfactory
ejb/embeddable
ejb/lifecycle
ejb/singleton
extra/camel
extra/quartz
extra/twitter-search
javamail/definition
jaxrs/filter-interceptor
jaxrs/interceptor
jaxrs/invocation
jaxrs/invocation-async
jaxrs/link
jaxrs/moxy
jaxrs/readerwriter-json
jaxrs/request-binding
jaxrs/server-sent-event
jca/connector-simple
jpa/entitygraph
jpa/jndi-context
jpa/jpa-converter
jpa/locking-optimistic
jpa/locking-pessimistic
jpa/multiple-pu
jpa/pu-typesafe
jpa/schema-gen-index
jpa/schema-gen-scripts-external
jpa/schema-gen-scripts-generate
jpa/storedprocedure
jpa/unsynchronized-pc
jsf/ajax
jsf/components
jsf/composite-component
jsf/contracts
jsf/contracts-library
jsf/contracts-library-impl
jsf/file-upload
jsf/flows-declarative
jsf/flows-mixed
jsf/flows-programmatic
jsf/flows-simple
jsf/passthrough
jsf/radio-buttons
jsf/resource-handling
jsf/server-extension
jsf/viewscoped
servlet/async-servlet
servlet/cookies
servlet/error-mapping
servlet/event-listeners
servlet/nonblocking
servlet/protocol-handler
servlet/servlet-basicauth-file
servlet/web-fragment
websocket/atmosphere-chat
websocket/endpoint-config
websocket/endpoint-javatypes
websocket/endpoint-partial
websocket/endpoint-programmatic-async
websocket/endpoint-programmatic-config
websocket/endpoint-programmatic-injection
websocket/endpoint-programmatic-partial
websocket/endpoint-security
websocket/endpoint-singleton
websocket/httpsession
websocket/injection
websocket/javase-client
websocket/messagesize
websocket/parameters
websocket/properties
websocket/subprotocol
websocket/websocket-client
websocket/websocket-client-config
websocket/websocket-client-programmatic
websocket/websocket-client-programmatic-config
websocket/websocket-client-programmatic-encoders
websocket/websocket-vs-rest
websocket/websocket-vs-rest-payload
websocket/whiteboard
bartoszmajsak commented 10 years ago

In case anyone is wondering, I done it by applying dummy cmdline-fu on the root folder:

$> grep -r "import org.jboss.arquillian" . |  xargs dirname | sed -r 's/^.{2}//' | sed '/\./d' | cut -d'/' -f1,2 | uniq | sort > arq.tests
$> find . -maxdepth 2 -type d -exec ls -d "{}" \; | sed -r 's/^.{2}//'  | cut -d'/' -f1,2 | uniq | sort > all.projects
$> grep -vhFxf arq.tests all.projects 
arun-gupta commented 10 years ago

Thanks a lot @bartoszmajsak !

You've got admin access on this repo now :)

bartoszmajsak commented 10 years ago

@arun-gupta Thank you :)