Re: Finding EOModel For UnitTesting

From: Kaj Hejer (kaj.heje..sit.uio.no)
Date: Wed Feb 23 2005 - 03:34:05 EST

  • Next message: wolip..atos.de: "WOLips problem with WEBSERVER_RESOURCES"

    On 22. feb 2005, at 23.37, Mike Schrag wrote:

    > EOModelGroup.defaultGroup().addModelWithPathURL(new
    > File("/path/to/myprototypeifihaveone.eomodeld").toURL());
    > EOModelGroup.defaultGroup().addModelWithPathURL(new
    > File("/path/to/mymodel.eomodeld").toURL());
    >
    >

    Nice! Thank you for posting this code!

    This solves the issue I posted about yesterday about running a single
    junit test from package explorer.

    Now I added the following code to my setup method in my testcase and it
    seems to work just fine:

             if (EOModelGroup.defaultGroup().modelNamed(modelName) == null) {
                 EOModelGroup.defaultGroup().addModelWithPathURL(
                         new File(modelName + ".eomodeld").toURL());
             }

    -Kaj :)



    This archive was generated by hypermail 2.0.0 : Wed Feb 23 2005 - 03:34:18 EST