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.platform.login.default")
034@Deploy("org.nuxeo.ecm.webengine.jaxrs")
035@Deploy("org.nuxeo.ecm.webengine.base")
036@Deploy("org.nuxeo.ecm.webengine.ui")
037@Deploy("org.nuxeo.ecm.platform.test:test-usermanagerimpl/userservice-config.xml")
038@Deploy("org.nuxeo.ecm.webengine.test:login-anonymous-config.xml")
039@Deploy("org.nuxeo.ecm.webengine.test:login-config.xml")
040@Deploy("org.nuxeo.ecm.webengine.test:runtimeserver-contrib.xml")
041@Features({ PlatformFeature.class, WebDriverFeature.class, ServletContainerTransactionalFeature.class,
042        WebEngineFeatureCore.class })
043public class WebEngineFeature implements RunnerFeature {
044
045    protected URL config;
046
047    @Override
048    public void initialize(FeaturesRunner runner) {
049        SessionFactory.setDefaultRepository("test");
050    }
051
052}