Subversion Repositories eFlore/Applications.coel

Rev

Rev 404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 404 Rev 554
Line 1... Line 1...
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
Line 2... Line -...
2
 
-
 
3
import org.tela_botanica.client.i18n.AppliConstantes;
-
 
4
 
-
 
5
import com.extjs.gxt.ui.client.Registry;
2
 
Line 6... Line 3...
6
import com.google.gwt.junit.client.GWTTestCase;
3
import com.google.gwt.junit.client.GWTTestCase;
7
 
4
 
Line 15... Line 12...
15
	protected void gwtSetUp() {
12
	protected void gwtSetUp() {
16
		module = new Coel();
13
		module = new Coel();
17
		module.onModuleLoad();
14
		module.onModuleLoad();
18
	}
15
	}
Line 19... Line -...
19
	
-
 
20
	public void testerCreationConstanteI18n() {
-
 
21
		String messageErreur = "L'attribut contenant l'i18n doit ĂȘtre accesible et non null";
-
 
22
		assertTrue(messageErreur, module.getI18nConstante() != null);
-
 
23
	}
-
 
24
	
-
 
25
	public void testerInstanceConstanteI18n() {
-
 
26
		String messageErreur = "L'attribut contenant l'i18n doit ĂȘtre une instance de "+AppliConstantes.class;
-
 
27
		assertTrue(messageErreur, module.getI18nConstante() instanceof AppliConstantes);
-
 
28
	}
-
 
29
 
-
 
30
	public void testerRegistreContientAppliNom() {
-
 
31
		assertEquals(module.getI18nConstante().appliNom(), Registry.get(RegistreId.APPLI_NOM));
-
 
32
	}
-
 
33
	
-
 
34
	public void testerRegistreContientAppliCode() {
-
 
35
		assertEquals(module.getI18nConstante().appliCode(), Registry.get(RegistreId.APPLI_CODE));
-
 
36
	}
-
 
37
	
-
 
38
	public void testerRegistreContientAppliVersion() {
-
 
39
		assertEquals(module.getI18nConstante().appliVersion(), Registry.get(RegistreId.APPLI_VERSION));
-
 
40
	}
-
 
41
	
-
 
42
	public void testerRegistreContientAppliRevision() {
-
 
43
		assertTrue(Registry.get(RegistreId.APPLI_VERSION) != null);
-
 
44
	}
-
 
45
	
-
 
46
	public void testerRegistreContientConfiguration() {
-
 
47
		assertTrue(Registry.get(RegistreId.CONFIG) != null);
-
 
48
	}
-
 
49
	
-
 
50
	public void testerRegistreContientPopUpChargement() {
-
 
51
		assertTrue(Registry.get(RegistreId.POPUP_CHARGEMENT) != null);
-
 
52
	}
-
 
53
	
16
	
54
}
17
}