| 00:03:52 | <r0bby> weird |
| 00:41:37 | *** njero has joined #openmrs |
| 00:41:41 | *** ChanServ sets mode: +v njero |
| 00:49:17 | * r0bby curses |
| 01:31:04 | *** njero_ has joined #openmrs |
| 01:31:08 | *** njero has quit IRC |
| 01:47:43 | *** njero_ is now known as njero |
| 01:47:45 | *** ChanServ sets mode: +v njero |
| 05:16:03 | *** nribeka has quit IRC |
| 10:47:46 | *** [mharrison] has quit IRC |
| 11:15:58 | *** atomicturtle1 has joined #openmrs |
| 11:17:04 | *** atomicturtle1 has left #openmrs |
| 11:17:53 | *** atomicturtle1 has joined #openmrs |
| 11:23:18 | *** atomicturtle1 has quit IRC |
| 11:25:13 | *** atomicturtle1 has joined #openmrs |
| 11:28:22 | *** atomicturtle has quit IRC |
| 12:06:18 | *** njero has quit IRC |
| 13:20:15 | *** yanokwa has joined #openmrs |
| 13:20:15 | *** ChanServ sets mode: +v yanokwa |
| 13:20:55 | <r0bby> jmiranda: http://openmrs.org/wiki/Unit_Testing_Servlets |
| 13:20:57 | <r0bby> :) |
| 13:21:08 | <r0bby> I want my f'en fame and fortune |
| 13:21:14 | <r0bby> I'll settle for burke/paul's respect |
| 13:28:48 | <jmiranda> r0bby, awesome |
| 13:31:17 | <r0bby> :) |
| 13:31:30 | <r0bby> jmiranda: it helped me greatly |
| 13:31:42 | <r0bby> primarily giving me the query string =) |
| 13:31:51 | <r0bby> doPost() delegates to doGet() |
| 13:32:23 | <r0bby> doGet() delegates to other methods; it helps to eliminate the multiple return points |
| 13:32:30 | <r0bby> which is ugly as hell |
| 13:32:41 | <r0bby> not to mention confusing |
| 13:34:25 | <r0bby> ben told me to do it; then kevin said so i figured i'd do it |
| 13:35:29 | <jmiranda> r0bby, well done |
| 13:35:44 | <jmiranda> can't wait to start using it |
| 13:37:05 | <jmiranda> this will be helpful for our logic service rest module |
| 13:37:51 | <r0bby> kevin wrote one, i used his as a guide-post |
| 13:37:58 | <r0bby> for the mocklogicws |
| 13:38:03 | <r0bby> or whatever :P |
| 13:38:24 | <jmiranda> yeah, odamocklogicws ... didn't realize he did that :) |
| 13:38:49 | <r0bby> so use his :) |
| 13:38:54 | <r0bby> it was helpful to me |
| 13:39:16 | <r0bby> I got what was happening based on reading the code and using common-sense |
| 13:39:35 | <r0bby> mine does HttpRequests |
| 13:39:39 | <r0bby> his does REST |
| 13:40:30 | <jmiranda> yup, basically the same except he gets xml back |
| 13:40:38 | <jmiranda> you get (x)html |
| 13:40:39 | <r0bby> mine gets XML back :P |
| 13:40:45 | <r0bby> no, i get XML :P |
| 13:40:48 | <jmiranda> really? |
| 13:40:51 | <r0bby> it returns AJAX |
| 13:45:11 | <r0bby> http://openmrs.org/wiki/Unit_Testing_Servlets#Other_Links |
| 13:45:13 | <OpenMRSBot> <http://ln-s.net/25RV> (at openmrs.org) |
| 13:45:24 | <r0bby> I added Kevin's test class, as well as his servlet |
| 13:51:34 | <r0bby> jmiranda: i wrote that with Module coders in mind |
| 13:53:26 | <jmiranda> cool |
| 13:53:36 | <jmiranda> yeah, the httpunit stuff looks really easy to use |
| 13:54:39 | <r0bby> it is |
| 13:54:49 | <r0bby> I just couldn't stand mocking the entire servlet |
| 13:54:59 | <r0bby> this all runs inside of the container which is good |
| 13:55:14 | <r0bby> you can even mock up js and all :) |
| 13:55:22 | <r0bby> I didn't use the full power of it |
| 14:00:21 | <r0bby> it's more powerful than I need or want |
| 14:00:31 | <r0bby> I *DO NOT* want to test my entire view |
| 14:00:46 | <r0bby> though, my project is well tested |
| 14:16:56 | *** yanokwa has quit IRC |
| 14:24:20 | <r0bby> hmm |
| 14:24:26 | * r0bby has his blog linked :) |
| 14:24:51 | <r0bby> on this one guy's java 7 page which lists all JSRs for java 7 |
| 14:25:25 | *** jmiranda has quit IRC |
| 14:56:27 | *** njero has joined #openmrs |
| 14:56:27 | *** ChanServ sets mode: +v njero |
| 15:27:35 | *** njero has quit IRC |
| 16:09:31 | *** bwolfe has joined #openmrs |
| 16:09:31 | *** ChanServ sets mode: +o bwolfe |
| 16:11:43 | <r0bby> bwolfe: see the list :) |
| 16:11:49 | * r0bby wrote the tutorial |
| 16:12:28 | <r0bby> now where's my fame and fortunate minus the fame and fortune |
| 16:13:05 | <bwolfe> _____________________- |
| 16:13:10 | <bwolfe> right there |
| 16:13:28 | <r0bby> you meanie |
| 16:13:40 | <r0bby> Although, I posted my example in groovy |
| 16:13:53 | <r0bby> it's close enough to java that it's not impossible to understand |
| 16:40:05 | <r0bby> bwolfe: in other news -- everything works :) |
| 16:40:35 | <r0bby> I'm not sure why I can't just grab the class from the request object; but passing it into my method works |
| 16:40:53 | <r0bby> (this is in regards to the generateView() and generateController() methods in my servlet |
| 16:41:33 | <r0bby> bwolfe: you ever hear of Randy Pausch? |
| 16:41:57 | <bwolfe> yeah, guy from CMU. very sad |
| 16:43:39 | <r0bby> yes |
| 16:43:45 | <r0bby> he was brilliant |
| 16:44:07 | <r0bby> Josh Bloch and one of the senior research scientists at google had dealings w/ him |
| 16:45:45 | <r0bby> for the next step I need to save the model |
| 16:46:08 | <r0bby> when i save the model -- have to delete it |
| 16:46:27 | <r0bby> What I'm thinking of doing is creating a backup when I save (or re-save it) |
| 16:46:41 | <r0bby> Burke is going to ask for an exception I know it |
| 16:46:49 | <r0bby> and I don't wanna throw it |
| 16:46:58 | <r0bby> I throw them where I feel its useful |
| 16:47:14 | <r0bby> perhaps when I implement the use it'll become obvious |
| 16:47:22 | <r0bby> why I made the decision i did |
| 16:47:46 | <bwolfe> yeah, probably best never to really delete |
| 16:47:49 | <bwolfe> disk space is cheap |
| 16:47:57 | <bwolfe> just move it to an archive folder or something |
| 16:49:44 | <r0bby> bwolfe: I have to in this case\ |
| 16:49:50 | <r0bby> Otherwise it winds up appending |
| 16:50:14 | * r0bby saw the behavior |
| 17:05:52 | <r0bby> I have a serious love for ternary operators |
| 17:05:57 | <r0bby> and the elvis operator rocks |
| 17:06:29 | <r0bby> sb << clazz.contains("Controller") ? "import org.openmrs.module.groovyforms.AbstractGroovyFormController\n\n" : "\n" |
| 17:06:34 | <r0bby> :) |
| 19:50:18 | *** Keelhaul has joined #openmrs |
| 19:50:18 | *** ChanServ sets mode: +v Keelhaul |
| 19:52:57 | <Keelhaul> hi |
| 20:08:57 | <r0bby> hey Keelhaul |
| 20:08:57 | <r0bby> :) |
| 20:11:58 | <Keelhaul> wut ^ |
| 20:29:33 | <r0bby> hi |
| 22:12:37 | *** bwolfe has quit IRC |
| 23:06:21 | *** Keelhaul has quit IRC |
| 23:06:36 | *** Keelhaul has joined #openmrs |
| 23:06:36 | *** ChanServ sets mode: +v Keelhaul |