1 /*
2 * #%L
3 * IsisFish
4 *
5 * $Id: FactorGroupTest.java 4156 2014-12-09 11:27:18Z echatellier $
6 * $HeadURL: https://svn.codelutin.com/isis-fish/tags/isis-fish-4.4.0.2/src/test/java/fr/ifremer/isisfish/simulator/sensitivity/group/FactorGroupTest.java $
7 * %%
8 * Copyright (C) 2010 - 2011 Ifremer, CodeLutin, Chatellier Eric
9 * %%
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation, either version 3 of the
13 * License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this program. If not, see
22 * <http://www.gnu.org/licenses/gpl-3.0.html>.
23 * #L%
24 */
25
26 package fr.ifremer.isisfish.simulator.sensitivity.group;
27
28 import org.junit.Test;
29
30 import fr.ifremer.isisfish.simulator.sensitivity.Domain;
31 import fr.ifremer.isisfish.simulator.sensitivity.Factor;
32 import fr.ifremer.isisfish.simulator.sensitivity.FactorGroup;
33 import fr.ifremer.isisfish.simulator.sensitivity.domain.DiscreteDomain;
34
35 /**
36 * Test for FactorGroup.
37 *
38 * @author chatellier
39 * @version $Revision: 4156 $
40 *
41 * Last update : $Date: 2014-12-09 12:27:18 +0100 (Tue, 09 Dec 2014) $
42 * By : $Author: echatellier $
43 */
44 public class FactorGroupTest {
45
46 /**
47 * Test to add a factor into group.
48 */
49 @Test
50 public void testFactorGroupAdd() {
51 Factor f1 = new Factor("test");
52 Domain d1 = new DiscreteDomain();
53 f1.setDomain(d1);
54 Factor f2 = new Factor("test 2");
55 Domain d2 = new DiscreteDomain();
56 f2.setDomain(d2);
57 FactorGroup g = new FactorGroup("test group");
58 g.addFactor(f1);
59 g.addFactor(f2);
60 }
61
62 }