--
You received this message because you are subscribed to the Google Groups "GWizard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwizard+u...@googlegroups.com.
To post to this group, send email to gwi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gwizard/43618fee-0a32-45cc-99a1-5d62e6f125f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Awesome thanks. I agree for now just keep things in the same project and split later. Perhaps when there are say, multiple modules that does the same thing (ie 2 web modules), then the default should be kept in gwizard and the alternative can sit outside. At the moment the web module has jetty hard baked inside, so it's more of a "iron fisted" opinion :) I was thinking maybe there could be a "WebServer" interface, to which there would be a default Jetty implementation and free to be swapped out.
I think unit tests are easier to run via maven or IDE. For example, after updating a whole bunch of dependencies, it's much easier to just run `mvn test` rather than running each self-contained main() method. A well written test can also serve as example code.
I'll make a TODO to move the examples to src/example, and tell maven to use "example" as a test directory so they compile. That will probably clear up the confusion, and encourage everyone (read: me) to write more tests.
--
You received this message because you are subscribed to a topic in the Google Groups "GWizard Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gwizard/62qJHM3zx1Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gwizard+u...@googlegroups.com.
To post to this group, send email to gwi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gwizard/CADK-0ui8KDbSZXeVdsu0ap12%3D9QntOdpvOQUN3CuOaLUwf6n3Q%40mail.gmail.com.
final JacksonDBCollection<Student, Integer> students=
JacksonDBCollection.wrap(db.getCollection("Students"), Fortune.class, Integer.class, mongoJackMapper);
@DBCollection("Students") final JacksonDBCollection<Student, Integer> students
It's probably best not to fight with maven. If all the "real tests" are inside gwizard-example, maybe it would be reasonable to move gwizard-example into a submodule under gwizard (similar to dropwizard/dropwizard-example). That way when all unit tests are run, the "real tests" inside gwizard-example will be picked up.
I'll make a TODO to move the examples to src/example, and tell maven to use "example" as a test directory so they compile. That will probably clear up the confusion, and encourage everyone (read: me) to write more tests.
--
You received this message because you are subscribed to the Google Groups "GWizard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwizard+u...@googlegroups.com.
To post to this group, send email to gwi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gwizard/e46ae0dd-25d3-4de9-be7a-0c8ca991a082%40googlegroups.com.