Package org.pentaho.test.platform.engine.core

Examples of org.pentaho.test.platform.engine.core.SimpleObjectFactory


      // expected
    }
  }

  public void testCannotCreateCache() throws Exception {
    SimpleObjectFactory factory = new SimpleObjectFactory();
    factory.defineObject( "ICacheManager", MockDisabledCacheManager.class.getName() ); //$NON-NLS-1$
    // Swap in an object factory with a cache manager that doesn't allow creating new caches

    Set<IPentahoObjectFactory> facts = ( (AggregateObjectFactory) PentahoSystem.getObjectFactory() ).getFactories();
    PentahoSystem.clearObjectFactory();
    PentahoSystem.registerObjectFactory( factory );
View Full Code Here

TOP

Related Classes of org.pentaho.test.platform.engine.core.SimpleObjectFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.