This repository contains the source code of examples for the talk at DevConf.cz 2017.
mvn clean test
- demonstrates the basic usage of Weld SE Bootstrap API,
try-with-resourcesblock and how to start Weld optimized for tests
- test functionality provided by
com.githhub.mkouba.cdibee.EventHelloService, i.e. CDI events/observers
- shows how easy it is to test a CDI decorator
- makes use of
WeldInitiator- a JUnit4 test rule provided byweld-junit4artifact - for more info check https://github.com/weld/weld-junit
- demonstrates the usage of
WeldVerticle- a Vert.x component provided byweld-vertx-coreartifact - shows how to register a blocking handler backed by a
HelloServicebean instance - for more info check https://github.com/weld/weld-vertx
Probe development tool allows to inspect the application CDI components at runtime. See also the demo application hosted on OpenShift.
Just add weld-vertx-probe to the classpath (as defined in pom.xml) and set the org.jboss.weld.development system property to true, e.g. something like:
java -Dorg.jboss.weld.development=true -cp 'target/cdi-beyond-ee-0.0.1-SNAPSHOT.jar:weld-vertx-probe.jar' com.githhub.mkouba.cdibee.vertx.HelloApp