Author: nzamosenchuk
Date: 2011-07-01 10:27:05 -0400 (Fri, 01 Jul 2011)
New Revision: 4586
Modified:
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestExoContainer.java
Log:
EXOJCR-1068 : fixed Exception throwing.
Modified:
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestExoContainer.java
===================================================================
---
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestExoContainer.java 2011-07-01
14:06:00 UTC (rev 4585)
+++
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestExoContainer.java 2011-07-01
14:27:05 UTC (rev 4586)
@@ -682,7 +682,9 @@
public Object getComponentInstance(PicoContainer arg0) throws
PicoInitializationException,
PicoIntrospectionException
{
- throw new PicoInitializationException("Can't instantiate a
component.");
+ // Used to check a situation when RunTimeException occurs while retrieving an
instance.
+ // This reproduces usecase from JCR-1565
+ throw new RuntimeException();
}
public Class getComponentImplementation()
Show replies by date