In my current project we are running hundreds of JUnit tests which load a Spring application context, a Hibernate session factory and a c3p0 pool. The entire suite runs fine everywhere except a single machine where some tests will occasionally fail with a "ORA-12519, TNS:no appropriate service handler found" on an Oracle XE. The cause[1,2] … Continue reading ORA-12519 connection errors and JUnit tests
Tag: junit
Ensuring JUnit test suite contains all tests
While cleaning up today one of my projects I found a JUnit test that was not part of a test suite and never was executed. 'Never again' I say and here is how: a test suite that scans base packages for tests. The particular code: Is tailored to the specific project's needs Compares the tests … Continue reading Ensuring JUnit test suite contains all tests