java

Programming

Powermock with JUnit 4 to Test Spring+Hibernate Architecture

I've been working on developing this webapp project. Basically, we break the logical parts of the code into entity layer, service layer and UI layer. The data structure is not that complex, so we thought that we use Hibernate ORM to do its magic. All the plumbing works between these layers were managed via Spring dependency injection.

Read
Programming

For-loop, to ++i or i++ or not?

I just recalled an interesting theory mentioned by my C lecturer back in uni days, use ++i instead of i++ in a for-loop.

Read
Programming

Printing A5 size on A4 papers using iText

Automating bulk printing A4-sized papers into A5 size

Read
Programming

Revamping the background services

I have been assigned a job to improve the way the background services work. Most of them are background schedulers and all of them are implemented using Java.

Read