Ejemplo n.º 1
0
 /** Tests validateSetup with invalid config. */
 @Test(expected = RuntimeException.class)
 public void testValidateSetup_invalid() {
   Class<? extends TransactionManager> tmClass = JdbcConnectionsTransactionManager.class;
   UtilityForBo2Test.setCurrentTransactionManager(tmClass);
   JotmConnectionStrategy subject = new JotmConnectionStrategy();
   ReflectionUtils.invokeMethodByUniqueName(
       subject, "validateSetup", new Object[] {}); // $NON-NLS-1$
 }
Ejemplo n.º 2
0
 /** Tests validateSetup */
 @Test
 public void testValidateSetup_valid() {
   JotmConnectionStrategy subject = new JotmConnectionStrategy();
   ReflectionUtils.invokeMethodByUniqueName(
       subject, "validateSetup", new Object[] {}); // $NON-NLS-1$
 }