is it mandatory to call onmoduleload?

22 views
Skip to first unread message

cavit altindag

unread,
Aug 17, 2015, 1:35:19 AM8/17/15
to gwt-test-utils-users
Hi everybody i am new in gwt-test-utils. i have a big project that i have to include unit testing. i want to test the login window but the loginwindow class does not have onload method. do i need to write gwt.xml for this class or do i need to use whole project qwt.xml and call onload method of that module? By the way there is only one gwt.xml file in the project and it is starting whole project.
I am using gwt 2.6 and gwt-test-utils 0.47
Thank you in advance.

cavit altindag

unread,
Aug 17, 2015, 1:39:00 AM8/17/15
to gwt-test-utils-users
here the only gwt.xml file

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='web_pad'>
   
    <!-- Inherit the core Web Toolkit stuff. -->
    <inherits name='com.google.gwt.user.User' />
    <!--<inherits name='com.google.gwt.inject.Inject'/>-->
    <inherits name='com.google.gwt.resources.Resources'/>
    <inherits name="com.google.gwt.activity.Activity" />
    <inherits name="com.google.gwt.place.Place" />
    <inherits name='com.google.gwt.query.Query' />
    <inherits name='com.google.gwt.json.JSON' />
    <inherits name='com.google.gwt.xml.XML' />


    <!-- Setup Logging -->

    <inherits name="com.google.gwt.logging.Logging"/>
    <!-- set-property name="gwt.logging.logLevel" value="SEVERE"/ --> # To change the default logLevel
    <!-- set-property name="gwt.logging.enabled" value="FALSE"/ --> # To disable logging
    <!-- set-property name="gwt.logging.consoleHandler" value="DISABLED"/-->  # To disable a default Handler
    <!-- set-property name="gwt.logging.developmentModeHandler" value="DISABLED" /-->
    <set-property name="gwt.logging.popupHandler" value="DISABLED" />
    <!-- set-property name="gwt.logging.systemHandler" value="DISABLED" /-->
    <!-- set-property name="gwt.logging.firebugHandler" value="DISABLED" /-->
   
    <!-- Compile for chrome with string 'safari', firefox with string 'gecko1_8' -->
    <set-property name="user.agent" value="gecko1_8,safari" />

    <!-- Inherit the default GWT style sheet. You can change -->
    <!-- the theme of your GWT application by uncommenting -->
    <!-- any one of the following lines. -->

    <!--<inherits name='com.google.gwt.user.theme.standard.Standard' />-->
    <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
    <inherits name='com.google.gwt.user.theme.dark.Dark' />
   
   
    <stylesheet src='/epad/static.css' />

    <!-- Specify the app entry point class. -->
    <entry-point class='edu.stanford.client.Web_pad' />

   
    <!-- Specify the paths for translatable code -->
    <source path='client' />
    <source path='shared' />
    <!--<source path='test/gwt' />-->

   

    <!-- Other module inherits -->
    <inherits name="name.pehl.totoe.xml.XML" />
    <inherits name='com.hydro4ge.raphaelgwt.RaphaelGWT' />
    <inherits name='org.w3c.dom.DOM' />
    <inherits name='edu.stanford.hakan.aim4api.AIMAPI' />
    <inherits name="com.google.gwt.user.Debug"/>
   
    <inherits name='org.restlet.Restlet'/>
    <inherits name='org.restlet.JSON' />
    <inherits name='org.restlet.XML' />
    
     <!-- drawing charts -->
    <inherits name="com.googlecode.gchart.GChart" />
    <inherits name='com.google.gwt.visualization.Visualization'/>
   
    <!-- client plugins -->
    <inherits name='edu.stanford.isis.epad.plugin.lesiontracking.LesionTracking' />
    <!-- uncomment for bimm -->
   <!-- <inherits name='edu.stanford.isis.epad.plugin.bimm.BIMMPlugin' /> -->
       

    <!-- Use ClientFactoryImpl by default -->
    <replace-with class="edu.stanford.client.ClientFactoryImpl">
        <when-type-is class="edu.stanford.client.ClientFactory" />
    </replace-with>
    <replace-with class="edu.stanford.client.undo.EPadInvokerManager">
        <when-type-assignable class="edu.stanford.client.undo.InvokerManager" />
    </replace-with>
    <set-configuration-property name="CssResource.style" value="pretty"/>
   
    <!-- enable super dev mode -->
     <add-linker name="xsiframe"/>
    <set-configuration-property name="devModeRedirectEnabled" value="true"/>

    <!-- enable source maps -->
    <set-property name="compiler.useSourceMaps" value="true" />
    <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
   
</module>
 
 
Reply all
Reply to author
Forward
0 new messages