private static WebAppDescriptor webAppDescriptor = new WebAppDescriptor.Builder(
"org.pentaho.platform.web.http.api.resources" ).contextPath( "api" ).addFilter(
PentahoRequestContextFilter.class, "pentahoRequestContextFilter" ).build();
public FilePerspectiveResourceTest() throws Exception {
this.setTestContainerFactory( new GrizzlyTestContainerFactory() );
mp.setFullyQualifiedServerUrl( getBaseURI() + webAppDescriptor.getContextPath() + "/" );
mp.define( IPluginManager.class, DefaultPluginManager.class, Scope.GLOBAL );
mp.define( IPluginResourceLoader.class, PluginResourceLoader.class, Scope.GLOBAL );
mp.define( IRoleAuthorizationPolicyRoleBindingDao.class, RoleAuthorizationPolicy.class, Scope.GLOBAL );
mp.define( ITenantManager.class, RepositoryTenantManager.class, Scope.GLOBAL );