001/* 002 * (C) Copyright 2006-2016 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Damien Metzler (Leroy Merlin, http://www.leroymerlin.fr/) 018 */ 019package org.nuxeo.ecm.webengine.test; 020 021import java.net.URL; 022 023import org.nuxeo.ecm.core.test.ServletContainerTransactionalFeature; 024import org.nuxeo.ecm.platform.test.PlatformFeature; 025import org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory; 026import org.nuxeo.runtime.test.runner.Deploy; 027import org.nuxeo.runtime.test.runner.Features; 028import org.nuxeo.runtime.test.runner.FeaturesRunner; 029import org.nuxeo.runtime.test.runner.RunnerFeature; 030import org.nuxeo.runtime.test.runner.web.WebDriverFeature; 031 032@Deploy("org.nuxeo.ecm.platform.login") 033@Deploy("org.nuxeo.ecm.webengine.jaxrs") 034@Deploy("org.nuxeo.ecm.webengine.base") 035@Deploy("org.nuxeo.ecm.webengine.ui") 036@Deploy("org.nuxeo.ecm.platform.test:test-usermanagerimpl/userservice-config.xml") 037@Deploy("org.nuxeo.ecm.webengine.test:login-anonymous-config.xml") 038@Deploy("org.nuxeo.ecm.webengine.test:runtimeserver-contrib.xml") 039@Features({ PlatformFeature.class, WebDriverFeature.class, ServletContainerTransactionalFeature.class, 040 WebEngineFeatureCore.class }) 041public class WebEngineFeature implements RunnerFeature { 042 043 protected URL config; 044 045 @Override 046 public void initialize(FeaturesRunner runner) { 047 SessionFactory.setDefaultRepository("test"); 048 } 049 050}