Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 399 → Rev 400

/trunk/CoelTest-web
New file
0,0 → 1,3
#!/bin/sh
APPDIR=`dirname $0`;
java -Dgwt.args="-web -out www-test" -Xmx256M -cp "$APPDIR/src:$APPDIR/test:$APPDIR/bin:/opt/eclipse/plugins/org.junit_3.8.2.v20090203-1005/junit.jar:/opt/gwt-1.5.3/gwt-user.jar:/opt/gwt-1.5.3/gwt-dev-linux.jar:/opt/gxt-1.2.4/gxt.jar" junit.textui.TestRunner org.tela_botanica.client.CoelTest "$@";
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/CoelTest-hosted.launch
New file
0,0 → 1,26
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/coel/test/org/tela_botanica/client/CoelTest.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;coel&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/coel/test&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/coel/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;coel&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.USER_LIBRARY/GWT-1.5.3&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.USER_LIBRARY/GXT-1.2.4&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.tela_botanica.client.CoelTest"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="coel"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-out www-test&quot; -Xmx256M"/>
</launchConfiguration>
/trunk/test/org/tela_botanica/client/CoelTest.java
New file
0,0 → 1,54
package org.tela_botanica.client;
 
import org.tela_botanica.client.i18n.AppliConstantes;
 
import com.extjs.gxt.ui.client.Registry;
import com.google.gwt.junit.client.GWTTestCase;
 
public class CoelTest extends GWTTestCase {
private Coel module = null;
public String getModuleName() {
return "org.tela_botanica.Coel";
}
protected void gwtSetUp() {
module = new Coel();
module.onModuleLoad();
}
public void testerExistanceConstanteI18n() {
String messageErreur = "L'attribut contenant l'i18n doit ĂȘtre accesible et non null";
assertTrue(messageErreur, module.i18nC != null);
}
public void testerInstanceConstanteI18n() {
String messageErreur = "L'attribut contenant l'i18n doit ĂȘtre une instance de "+AppliConstantes.class;
assertTrue(messageErreur, module.i18nC instanceof AppliConstantes);
}
 
public void testerRegistreContientAppliNom() {
assertEquals(module.i18nC.appliNom(), Registry.get(RegistreId.APPLI_NOM));
}
public void testerRegistreContientAppliCode() {
assertEquals(module.i18nC.appliCode(), Registry.get(RegistreId.APPLI_CODE));
}
public void testerRegistreContientAppliVersion() {
assertEquals(module.i18nC.appliVersion(), Registry.get(RegistreId.APPLI_VERSION));
}
public void testerRegistreContientAppliRevision() {
assertTrue(Registry.get(RegistreId.APPLI_VERSION) != null);
}
public void testerRegistreContientConfiguration() {
assertTrue(Registry.get(RegistreId.CONFIG) != null);
}
public void testerRegistreContientPopUpChargement() {
assertTrue(Registry.get(RegistreId.POPUP_CHARGEMENT) != null);
}
}
/trunk/CoelTest-hosted
New file
0,0 → 1,3
#!/bin/sh
APPDIR=`dirname $0`;
java -Dgwt.args="-noserver -port 80 -out www-test" -Xmx256M -cp "$APPDIR/src:$APPDIR/test:$APPDIR/bin:/opt/eclipse/plugins/org.junit_3.8.2.v20090203-1005/junit.jar:/opt/gwt-1.5.3/gwt-user.jar:/opt/gwt-1.5.3/gwt-dev-linux.jar:/opt/gxt-1.2.4/gxt.jar" junit.textui.TestRunner org.tela_botanica.client.CoelTest "$@";
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/CoelTest-web.launch
New file
0,0 → 1,26
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/coel/test/org/tela_botanica/client/CoelTest.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;coel&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/coel/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/coel/test&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento project=&quot;coel&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.USER_LIBRARY/GWT-1.5.3&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.USER_LIBRARY/GXT-1.2.4&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.tela_botanica.client.CoelTest"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="coel"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dgwt.args=&quot;-web -out www-test&quot; -Xmx256M"/>
</launchConfiguration>
/trunk/.
Property changes:
Modified: svn:ignore
tomcat
bin
+www-test
+.gwt-tmp