936 |
jpm |
1 |
package org.tela_botanica.client.vues.structure;
|
404 |
jp_milcent |
2 |
|
|
|
3 |
import org.tela_botanica.client.Coel;
|
|
|
4 |
import org.tela_botanica.client.Mediateur;
|
|
|
5 |
import org.tela_botanica.client.RegistreId;
|
935 |
jpm |
6 |
import org.tela_botanica.client.vues.structure.StructureDetailVue;
|
404 |
jp_milcent |
7 |
|
|
|
8 |
import com.extjs.gxt.ui.client.Registry;
|
|
|
9 |
import com.google.gwt.junit.client.GWTTestCase;
|
|
|
10 |
|
|
|
11 |
public class StructureDetailPanneauVueTest extends GWTTestCase {
|
|
|
12 |
|
|
|
13 |
private Coel module = null;
|
|
|
14 |
private Mediateur mediateur = null;
|
|
|
15 |
|
|
|
16 |
public String getModuleName() {
|
|
|
17 |
return "org.tela_botanica.Coel";
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
protected void gwtSetUp() {
|
|
|
21 |
module = new Coel();
|
|
|
22 |
module.onModuleLoad();
|
|
|
23 |
mediateur = Registry.get(RegistreId.MEDIATEUR);
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public void testerConstructionTxtListeOntologie() {
|
444 |
jp_milcent |
27 |
StructureDetailVue vueDetail = new StructureDetailVue(mediateur);
|
404 |
jp_milcent |
28 |
String chaineAAnalyser = "2068;;2069;;2067";
|
|
|
29 |
|
421 |
jp_milcent |
30 |
String chaineFormatee = vueDetail.construireTxtListeOntologie(chaineAAnalyser);
|
404 |
jp_milcent |
31 |
System.out.println(chaineFormatee);
|
|
|
32 |
assertEquals("Bâtiment (ex. : Herbier), Pièce, Réserves", chaineFormatee);
|
|
|
33 |
}
|
|
|
34 |
}
|