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