From time to time during writing JUnit testing (you’are writing test, aren’t you
) you will need to test that do throw an exception. Have a look at methods to test such intentional expected behaviour.
Posts tagged with 'java'
JUnit – a better way how to test intentional exception throws
September 14th, 2011 by Libor Jelinek
Tags: java, junit | Posted in: Java | No Comments »
Coding Etiquette
September 14th, 2011 by Libor Jelinek
Easy to follow rules improving overall code legibility and later maintenance.
Read the rest of this entry »Tags: java | Posted in: Java | No Comments »
JPQL in examples
September 9th, 2011 by Libor Jelinek
Quick brief example driven guide to Java Persistence Query Language (JPQL)
Read the rest of this entry »Tags: java, jpa | Posted in: Java | No Comments »
Disabling any selection ListSelectionModel for JTable
September 9th, 2011 by Libor Jelinek
Unfortunatelly there’s no easy way how to disable any selection in JTable.
Read the rest of this entry »Tags: java, swing | Posted in: Java | No Comments »
Java Persistence API in non-JEE environment
September 8th, 2011 by Libor Jelinek
JPA, as a one of the most useful technology from JEE world, is commonly overlooked in Java SE enviroments. There is a lot of documentation, manuals, tutorials but most of them are aimed to JEE enviroments. Unfortunatelly some of essential concepts is different if used outside JEE. Fortunatelly most of things are simpler. In this post I would like to briefly introduce you into JPA 2.0 for Java SE heavily based on official JPA 2.0 specification in simplified “destilled” form. Read the rest of this entry »
Tags: java, jpa | Posted in: Java | 1 Comment »
