package nc.noumea.mairie.appock.event;

/*-
 * #%L
 * Logiciel de Gestion des approvisionnements et des stocks des fournitures administratives de la Mairie de Nouméa
 * %%
 * Copyright (C) 2017 Mairie de Nouméa, Nouvelle-Calédonie
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */

import org.junit.Assert;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;

import nc.noumea.mairie.appock.core.security.AppUser;

@ContextConfiguration(locations = { "/META-INF/spring/applicationContext-test.xml" })
public class RechargeOngletAbstractEntityEventTest extends AbstractTransactionalJUnit4SpringContextTests {

	@Test
	public void constructorEtGetter() {
		AppUser appUser = new AppUser();
		RechargeOngletAbstractEntityEvent event = new RechargeOngletAbstractEntityEvent(appUser, null, null);

		Assert.assertEquals(event.getAbstractEntity(), appUser);
	}
}
