Posts

Showing posts with the label android

Android TDD Using JUnit, Robolectric and Mockito

Image
Android now supports unit testing. Android unit testing runs on devices or emulators that adds extra time during development. I'm a big fan of TDD and the way android testing is done does not help me much. However... Thanks to Robolectric, headless testing is now possible by leveraging gradle. I wrote this post as a result of trying out several different approaches that confused me. Hopefully this one will help you set it up better. How? First, current common Android development projects are tightly coupled. Most stuffs are done in the Activity or Fragment, blame the tutorials. This makes it hard for us to actually do unit testing since a unit test should be isolated. The tight coupling makes unit testing impossible. Then, come this approach called Model - View - Presenter (MVP). MVP aims at separating concerns. The three components involved handles different concerns: Model This component groups all data related concerns. This component handles data que...

Random Pics From Jakarta

Image
Below are some pictures taken around Jakarta. Enjoy! Senayan area from the 24th floor, you can actually see most of Jakarta West Jakarta from a hospital balcony The "Pemuda" statue, for me it looks more like a man carrying a burning pizza a puncher in the 24th floor Indonesian venice? Dream on... A mid-city golf course on the making traditional fish market about to land in Jakarta All my works are available in my instagram account @femmerling. Feel free to use any of the above pics but please put a link back to my blog. regards -E- follow @femmerling on twitter

Indonesian Nature Pics

Image
After getting an android phone the NASA hackathon back in april, I suddenly turn into a so-called-amateur-photographer. Photography has always been an interest. Add a tiny app called Instagram  and you got some photo filter magic. Below are some of my nature photo collections. Enjoy!!! a broken boat sunrise in the Gulf of Jakarta fishermen harbour morning sky a lonely tree fish pond bridge to your dream seaside fish pond Gedong Songo ruins, Ambarawa, Central Java, Indonesia sulfur cave, Baturaden, Purwokerto, Central Java, Indonesia one of the nine Gedong Songo temples, Ambarawa, Central Java, Indonesia my backyard a plane in the sky afternoon seaside talks Kamal Muara fishermen harbour the Frangipani and the pagoda All my works are available in my instagram account @femmerling. Feel free to use any of the above pics but please put a link back to my blog. regards -E- follow @femmerling on t...