Re: Finding EOModel For UnitTesting

From: James Seigel (james.seige..rx-ca.com)
Date: Wed Feb 23 2005 - 08:20:19 EST

  • Next message: Jean Pierre Malrieu: "Re: EOModel-based code completion?"

    Awesome, thank you..I will try it out shortly!

    Cheers
    James.
    On 23-Feb-05, at 1:34 AM, Kaj Hejer wrote:

    >
    > 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 - 08:20:18 EST