RuntimeObjectFactory implements IPentahoRegistrableObjectFactory { @Override public String getName() { return "Runtime Object Factory"; } RuntimeObjectFactory(); @Override @SuppressWarnings( "unchecked" ) IPentahoObjectRegistration registerObject( T obj ); @Override IPentahoObjectRegistration registerReference( IPentahoObjectReference<T> reference ); @Override @SuppressWarnings( "unchecked" ) IPentahoObjectRegistration registerObject( T obj, Types types ); @SuppressWarnings( { "unchecked" } ) @Override IPentahoObjectRegistration registerReference( IPentahoObjectReference<T> reference, Types types ); @SuppressWarnings( "unchecked" ) @Override IPentahoObjectRegistration registerObject( T obj, Class<?>... classes ); @Override IPentahoObjectRegistration registerReference( IPentahoObjectReference<T> reference,
                                                           Class<?>... classes ); @Override T get( final Class<T> interfaceClass, final IPentahoSession session ); @Override T get( final Class<T> interfaceClass, final String key, final IPentahoSession session ); @Override T get( final Class<T> interfaceClass, final IPentahoSession session, final Map<String, String> properties ); @Override boolean objectDefined( String key ); @Override boolean objectDefined( Class<?> clazz ); @Override Class<?> getImplementingClass( String key ); @Override void init( String configFile, Object context ); @Override List<T> getAll( final Class<T> interfaceClass, final IPentahoSession session ); @Override @SuppressWarnings( "unchecked" ) List<T> getAll( final Class<T> interfaceClass, final IPentahoSession session,
                             final Map<String, String> properties ); @Override IPentahoObjectReference<T> getObjectReference( Class<T> interfaceClass, IPentahoSession curSession ); @Override IPentahoObjectReference<T> getObjectReference( Class<T> interfaceClass, IPentahoSession curSession,
                                                            Map<String, String> properties ); @Override List<IPentahoObjectReference<T>> getObjectReferences( Class<T> interfaceClass, IPentahoSession curSession ); @Override List<IPentahoObjectReference<T>> getObjectReferences( final Class<T> interfaceClass,
                                                                   final IPentahoSession curSession,
                                                                   final Map<String, String> properties ); @Override String getName();  }
@Test public void testGetName() throws Exception { RuntimeObjectFactory factory = new RuntimeObjectFactory(); assertEquals( "Runtime Object Factory", factory.getName() ); }