001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Damien Metzler (Leroy Merlin, http://www.leroymerlin.fr/) 011 */ 012package org.nuxeo.ecm.core.test.annotations; 013 014import org.nuxeo.ecm.core.api.CoreSession; 015 016/** 017 * Implement this class to provide an initializer for the {@link RepositoryInitializer} annotation in tests. 018 */ 019public interface RepositoryInit { 020 021 /** 022 * Creates the default objects in an empty repository. 023 * 024 * @param session the session to use to create objects 025 */ 026 void populate(CoreSession session); 027 028}