I'm not able to reproduce this problem. Can you please try to add the
following setUp to SingularPluralConverterTest

    public void setUp() {
        // reload properties
        new GeneratorProperties();
    }

Let me know if it helps or if you find another solution and I will change in
trunk.

/Patrik


Darth wrote:
> 
> THe generator tests that come along scultor generator that basically test
> utility methods like database name sizes, singular to plural etc fail
> under certain run conditions.
> 
> For example the singular2plural test, that tests the properties from
> property file "criteria" --> "criterion" fails. It fails on certian
> computers while running from maven, and doesnt on another computer.
> 
> If these tests are run from within eclipse, junit test, then the test
> passes when run all alone.
> RIght clickingo n the test > run as > junit test = test passes.
> 
> However if the tests are run as a batch of tests, this test fails. select
> package > run as > junit test so that all tests run from within eclipse,
> and all pass except this test.
> 
> This is happening because when running in batch mode, the properties files
> are not initialized at all. I was stepping through the debugger and it
> never hits the line in GeneratorProperties.java where properties are
> initialized. If always falls out of the 1st if block in initProperties()
> 
> When test is run as  single file, this is properly initialized.
> 
> I would assume something similar is happening when tests are run via
> command line.
> Some order in which they run makes all test pass, while another order
> makes test fail.
> 
> Can someone help me with this?
> 

-- 
View this message in context: 
http://www.nabble.com/Sculptor-generator-tests...failing-under-certain-run-cenerios.-tp18660140s17564p18663380.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to