Hi Pascal,
ERXProperties picks up all regular java properties so you can put your -D
prefixed properties in the “VM arguments” field in your launch configuration.
https://www.dropbox.com/s/et2et92zj5pbevn/Screenshot%202015-08-30%2010.38.48.png?dl=0
https://gist.github.com/hugith/7427ea246f6db46
Hi,
I’m trying to write, for the first time, some unit tests for ERJavaMail. I need
to pass some properties in the tests, but the properties are only seen if they
are in the Properties file. If I pass as argument in the launch configuration,
the properties are not found.
I have tried with both
led me as far as the valueForKeyPath method in ERXLocalizer returning
null for the template.
So I can match on the validation template key name but not the value. Come to
think of it, this may actually make more sense when unit testing, otherwise I'd
be having to look for different string va
Try reordering your application classpath and I guess moving Extensions
Framework above will solve the problem. It happened to me a couple of times and
I discovered it's related to loading the classes in specific order.
Farrukh
Henrique Prange wrote:
>Hi Kevin,
>
>I'm not an expert on ERXVal
Hi Kevin,
I'm not an expert on ERXValidation, but you're correct. The ERXLocalizer class
has not been initialized properly. Unfortunately, WOUnit doesn't load the
Properties file before the test execution as well as it doesn't provide means
for the ERXLocalizer to initialize properly. As a work
Hi everyone,
I have a model framework that I am currently testing using WOUnit. For the
Account EO I have a unit test to ensure that the email attribute is valid
before saving. That worked fine until I started changing the code to be
localizable.
I have a ValidationTemplate.strings in the fram
Hi Marius,
On 23/09/2011, at 5:29 PM, Marius Soutier wrote:
> Paul, are you depending on the bundle when building from Hudson? For me this
> property only mattes inside of Eclipse because I'm working bundle-less (which
> is much more compatible with other plug-ins).
I run the unit tests inside
Paul, are you depending on the bundle when building from Hudson? For me this
property only mattes inside of Eclipse because I'm working bundle-less (which
is much more compatible with other plug-ins).
My script is very simple now:
Hi all,
After some investigation on a sample project provided by Paul, I was able to
find a problem in the WOUnit code.
In order to solve the issue #13, I have enabled the NSBundleProjectEnabled
property by default. Besides the effort to test this change inside Eclipse and
in the console using
On 2011-09-22, at 12:50 PM, Marius Soutier wrote:
> I had forgotten to fork the jUnit process, so that's resolved now. Apparently
> the classpath does not get passed through to jUnit unless you fork the
> process. Makes things a bit slower :(
>
> But I still have this random strange error wher
I had forgotten to fork the jUnit process, so that's resolved now. Apparently
the classpath does not get passed through to jUnit unless you fork the process.
Makes things a bit slower :(
But I still have this random strange error where the EO cannot be instantiated
because EOF is not ready. I w
That sounds more like a classpath problem. Are you putting the jar in the
built .framework on the classpath, or something else?
On 2011-09-22, at 3:51 AM, Marius Soutier wrote:
> That error message wasn't exact enough, it was a problem with ERXLocalizer
> being initialized too early (in stati
As a matter of fact, my WOUnit-based tests work now!
On 22.09.2011, at 15:08, Henrique Prange wrote:
> That error only happens when you run the tests with Ant, correct?
>
> Sent from my iPhone
>
> On 22/09/2011, at 07:51, Marius Soutier wrote:
>
>> That error message wasn't exact enough, it w
That error only happens when you run the tests with Ant, correct?
Sent from my iPhone
On 22/09/2011, at 07:51, Marius Soutier wrote:
> That error message wasn't exact enough, it was a problem with ERXLocalizer
> being initialized too early (in statics), and now I'm down to this:
>
>[junit
That error message wasn't exact enough, it was a problem with ERXLocalizer
being initialized too early (in statics), and now I'm down to this:
[junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest: Caused
an ERROR
[junit] Unable to get the name of the class to instantiate fo
Hi Marius,
On 22/09/2011, at 7:27 PM, Marius Soutier wrote:
> I face the same problem when I run my WOUnit tests locally from Ant:
>
> [junit] Cannot load model named 'SFFoundationEOModel'
> [junit] java.lang.IllegalArgumentException: Cannot load model named
> 'SFFoundationEOModel'
>
I face the same problem when I run my WOUnit tests locally from Ant:
[junit] Cannot load model named 'SFFoundationEOModel'
[junit] java.lang.IllegalArgumentException: Cannot load model named
'SFFoundationEOModel'
[junit] at
com.wounit.rules.AbstractEditingContextRule.loadModel(Ab
On 2011-09-20, at 10:08 PM, Paul Hoadley wrote:
> On 21/09/2011, at 2:26 PM, Chuck Hill wrote:
>
If you
cd WT2.woa
./WT2
does the app run and find any of the bundles?
>>>
>>> Yep, runs and finds them all.
>>
>> Wow. The only thing that I can think of right now is that it
On 21/09/2011, at 2:26 PM, Chuck Hill wrote:
>>> If you
>>> cd WT2.woa
>>> ./WT2
>>> does the app run and find any of the bundles?
>>
>> Yep, runs and finds them all.
>
> Wow. The only thing that I can think of right now is that it _is_ something
> to do with WOTest. I just can't imagine wha
On 2011-09-20, at 9:50 PM, Paul Hoadley wrote:
> On 21/09/2011, at 12:47 PM, Chuck Hill wrote:
>
>>> Are the frameworks embedded in that bundle?
>>
>> Yes.
>
> You could try loading them from there instead. Just grab all the paths
> to jar files under Contents/Framework
On 21/09/2011, at 12:47 PM, Chuck Hill wrote:
>> Are the frameworks embedded in that bundle?
>
> Yes.
You could try loading them from there instead. Just grab all the paths to
jar files under Contents/Frameworks.
>>>
>>> I'll try that shortly.
>>
>> I added:
>>
>>
Hi Paul,
On 2011-09-20, at 6:55 PM, Paul Hoadley wrote:
> On 21/09/2011, at 9:53 AM, Paul Hoadley wrote:
>
> Are the frameworks embedded in that bundle?
Yes.
>>>
>>> You could try loading them from there instead. Just grab all the paths to
>>> jar files under Contents/Framework
On 21/09/2011, at 9:53 AM, Paul Hoadley wrote:
Are the frameworks embedded in that bundle?
>>>
>>> Yes.
>>
>> You could try loading them from there instead. Just grab all the paths to
>> jar files under Contents/Frameworks.
>
> I'll try that shortly.
I added:
Hi Chuck,
On 21/09/2011, at 8:44 AM, Chuck Hill wrote:
>>> Are the frameworks embedded in that bundle?
>>
>> Yes.
>
> You could try loading them from there instead. Just grab all the paths to
> jar files under Contents/Frameworks.
I'll try that shortly.
>>> Try getting the classloader in on
On 2011-09-20, at 3:57 PM, Paul Hoadley wrote:
> On 21/09/2011, at 7:51 AM, Chuck Hill wrote:
>
> I'm using the .woa directory as the bundle.
The .woa directory inside the source project (dist/Foo.woa)? Or built
someplace else?
>>>
>>> The former. The source project gets
On 21/09/2011, at 7:51 AM, Chuck Hill wrote:
I'm using the .woa directory as the bundle.
>>>
>>> The .woa directory inside the source project (dist/Foo.woa)? Or built
>>> someplace else?
>>
>> The former. The source project gets checked out into a Hudson workspace,
>> and it builds in d
On 2011-09-20, at 1:57 AM, Paul Hoadley wrote:
> On 20/09/2011, at 7:33 AM, Chuck Hill wrote:
>
> That is, it can't find JavaMemoryAdaptor.framework when it needs it. I'm
> having this problem when running unit tests in both application and
> framework bundles of my own. JavaMemo
Hi Ray,
On 20/09/2011, at 2:58 PM, Ray Kiddy wrote:
> Whenever I have had this sort of problem, I usually end up switching the
> target to a target. The re-write one has to do for that, the
> re-jiggering of the parameters, usually points me to the problem. It is kind
> of labor-intensive, b
On 20/09/2011, at 7:33 AM, Chuck Hill wrote:
That is, it can't find JavaMemoryAdaptor.framework when it needs it. I'm
having this problem when running unit tests in both application and
framework bundles of my own. JavaMemoryAdaptor.framework is on the
.classpath (confirme
On Sep 19, 2011, at 2:48 PM, Paul Hoadley wrote:
> Hi Chuck,
>
> On 20/09/2011, at 2:49 AM, Chuck Hill wrote:
>
>>> That is, it can't find JavaMemoryAdaptor.framework when it needs it. I'm
>>> having this problem when running unit tests in both application and
>>> framework bundles of my own
Hi Paul,
On 2011-09-19, at 2:48 PM, Paul Hoadley wrote:
> Hi Chuck,
>
> On 20/09/2011, at 2:49 AM, Chuck Hill wrote:
>
>>> That is, it can't find JavaMemoryAdaptor.framework when it needs it. I'm
>>> having this problem when running unit tests in both application and
>>> framework bundles o
Hi Chuck,
On 20/09/2011, at 2:49 AM, Chuck Hill wrote:
>> That is, it can't find JavaMemoryAdaptor.framework when it needs it. I'm
>> having this problem when running unit tests in both application and
>> framework bundles of my own. JavaMemoryAdaptor.framework is on the
>> .classpath (confi
Hi Paul,
On 2011-09-18, at 11:05 PM, Paul Hoadley wrote:
> Hello,
>
> I seem to bother the list with a variation on this problem every few months.
> I'm doing some unit testing during a Hudson build process using Henrique's
> WOUnit. I think what I've g
Hello,
I seem to bother the list with a variation on this problem every few months.
I'm doing some unit testing during a Hudson build process using Henrique's
WOUnit. I think what I've got is a bundle finding/loading problem that's
masquerading as a p
Hi Logi,
On Nov 11, 2008, at 6:26 AM, Logi Helguson wrote:
I created a setUp for my Unit test to load the models I needed:
// add eomodels
NSArray models = new NSArray( new String[]
{ "MY_MODEL" } );
String path = getClass().getResource( "/" ).toString();
path = path.replace( "bin/", ""
I created a setUp for my Unit test to load the models I needed:
// add eomodels
NSArray models = new NSArray( new String[] { "MY_MODEL" } );
String path = getClass().getResource( "/" ).toString();
path = path.replace( "bin/", "" );
// now we should be at the workspace, add location for EOMo
+1 to this suggestion. It's not a matter of if, but when something
will happen to your production data if you have a default production
connection dictionary in your model. When it does happen, just hope it
isn't a migration.
On 10/10/2008, at 11:25 PM, Mike Schrag wrote:
you can add a li
Tanks all, my way was working after all, I just hadn't changed all the data
in the development DB as I thought.
It's been mentioned more than once to change the default connection to the
development DB and hopefully we'll get to it before disaster strikes ;)
Þann 10/10/08 1:25 PM, skrfaði "Mike S
you can add a listener in your Application class.
Or use Wonder and just set it with Properties ... That said, I HIGHLY
recommend (and you can put this on my best practices list) that you
never make the default connection dictionary in your model the
production database. This is the setup f
Hi,
you can add a listener in your Application class.
For example:
...
public Application()
{
super();
...
NSNotificationCenter.defaultCenter().addObserver(this,
new NSSelector("modelAddedNotification", new Class[] {
NSNotification.class }),
EOModelGroup.ModelAd
I'd prefer to be working directly on the DB and my proplem is just how to
set the connection in code.
Þann 10/6/08 1:50 AM, skrfaði "Paulo Filipe Andrade" <[EMAIL PROTECTED]>
eftirfarandi:
> Searching this list about testing I found this thread.
>
> On Jun 13, 2008, at 8:22 PM, John Huss wrote:
Hi all,
I want to perform a unit test against my development database. I'm
configuring my database connection by setting the connection dictionary of
my model manually( model.setConnectionDictionary ) and adding the model to
the EOModelGroup.defaultGroup.
When I fetch objects from my editi
Searching this list about testing I found this thread.
On Jun 13, 2008, at 8:22 PM, John Huss wrote:
Did you try WOUnitTest2? It works pretty well, but doesn't actually
use the DB.
Also, you can use ERXMemoryAdaptor in Wonder to mimic DB access
without actually having a DB.
I had no id
public void testA() {
for(int i=0;i
Hi,
The problem is that I'm relying on an external API that dynamically
loads some
classes in which EOEditingContext are directly created.
I performed some refactoring in order to ease unit testing but I have the
following error :
My simple
On Jun 15, 2008, at 11:41 PM, [EMAIL PROTECTED] wrote:
Hi,
The problem is that I'm relying on an external API that dynamically
loads some
classes in which EOEditingContext are directly created.
I performed some refactoring in order to ease unit testing but I
have the
following
Hi,
The problem is that I'm relying on an external API that dynamically loads some
classes in which EOEditingContext are directly created.
I performed some refactoring in order to ease unit testing but I have the
following error :
My simple test class
@BeforeClass
public static
dp/1590592964
>
> Cheers,
>
> Henrique
>
>
> [EMAIL PROTECTED] wrote:
>
>> Moin list,
>>
>> A simple and stupid question :
>> I'd like to take advantage of maven and hudson by generating metrics on my
>> project.
>> A this time, we don&
Cheers,
Henrique
[EMAIL PROTECTED] wrote:
Moin list,
A simple and stupid question :
I'd like to take advantage of maven and hudson by generating metrics on my
project.
A this time, we don't write unit tests.
What is the best solution for unit testing WOApps? I already had a qui
Moin list,
A simple and stupid question :
I'd like to take advantage of maven and hudson by generating metrics on my
project.
A this time, we don't write unit tests.
What is the best solution for unit testing WOApps? I already had a quick look at
wounitest but I don't think it wil
On Nov 27, 2007, at 1:59 PM, Jean-François Veillette wrote:
Warning: I may have a somewhat heretical approach to testing. But
it works well for me.
I don't use WOUnitTest nor MockEditingContext. I use a real
EOEditingContext and often fetch from and save to the database.
This makes th
On Nov 23, 2007, at 9:45 AM, Miguel Arroz wrote:
Hi!
LOL! :) Well, that's odd!
Or good design. :-)
I believe that when you run an WOApp, magic happens because there's
an enormous amount of stuff running before the app starts taking
requests.
Well, it does... But why? How?
But w
Hi!
LOL! :) Well, that's odd! I believe that when you run an WOApp,
magic happens because there's an enormous amount of stuff running
before the app starts taking requests. But when you run it based on
the Main class in the test framework, it's different, that code is
not run... I think
On Nov 23, 2007, at 9:31 AM, Miguel Arroz wrote:
Hi!
But where's all the stuff needed to load models from the disk,
etc etc etc? IE, the EOF initialization?
Do I need that? Doesn't it "just happen"? I don't see any code
there that does that...
Let's see... Yep, WebObjects.
:-)
C
Hi!
But where's all the stuff needed to load models from the disk, etc
etc etc? IE, the EOF initialization?
Yours
Miguel Arroz
On 2007/11/23, at 16:34, Chuck Hill wrote:
On Nov 23, 2007, at 8:23 AM, Miguel Arroz wrote:
Hi!
On 2007/11/23, at 02:45, Chuck Hill wrote:
I don't use WO
Hi Tobias,
On Nov 23, 2007, at 8:32 AM, Tobias Crawley wrote:
Chuck:
What tools do you (or anyone else on the list) use for DBC? In your
book you discuss Jass, and you provide Jass4Eclipse (http://
www.gvcsitemaker.com/jass4eclipse/ant_builder). Is that what you
still use?
Not exactly.
I just spotted this in the release notes for the latest Contract4j,
so I have an idea about which tool Chuck uses:
"Thanks to Chuck H. for additional feedback and Sebastiaan v. E. and
Daniel S. for finding bugs!"
Tobias
On Nov 23, 2007, at 11:32 AM, Tobias Crawley wrote:
Chuck:
What tools
On Nov 23, 2007, at 8:23 AM, Miguel Arroz wrote:
Hi!
On 2007/11/23, at 02:45, Chuck Hill wrote:
I don't use WOUnitTest nor MockEditingContext. I use a real
EOEditingContext and often fetch from and save to the database.
This makes the test run more slowly than "traditional" unit
tests
Chuck:
What tools do you (or anyone else on the list) use for DBC? In your
book you discuss Jass, and you provide Jass4Eclipse (http://
www.gvcsitemaker.com/jass4eclipse/ant_builder). Is that what you
still use? It would be nice to have something that did not require
preprocessing, and Con
Hi!
On 2007/11/23, at 02:45, Chuck Hill wrote:
I don't use WOUnitTest nor MockEditingContext. I use a real
EOEditingContext and often fetch from and save to the database.
This makes the test run more slowly than "traditional" unit tests.
However, I think the advantages of really getting
Hi Jean-François,
On Nov 22, 2007, at 1:12 PM, Jean-François Veillette wrote:
I'm relatively new to unit testing, junit, selenium and all that
stuff.
I'd suggest going straight to TestNG rather than using JUnit. I have
found TestNG to be easier to control and configure
I'm relatively new to unit testing, junit, selenium and all that stuff.
I've built simple test so far for logic that didn't involve database
operation and didn't invole much of eof in fact.
I have to modify an existing project and would like to start building
test case
On Nov 8, 2005, at 2:49 PM, Georg Tuparev wrote:
I'm studying how to add unit tests to an WebObjects
application. I would like to use xCode (i hate eclipse).
You like Xcode?!!? You hate Eclipse?!!? What you been smokin'
Willis? Hating Eclipse and liking IntelliJIDEA I can understand.
I (almost violently) oppose any code in a a WOComponent not directly
and exclusively tied to making the UI function. I try to restrict
them to binding variables, cover methods, and overrides for inherited
methods. Everything else belongs someplace else, either in the EO or
in a layer betw
On Nov 2, 2005, at 11:36 PM, Chuck Hill wrote:
On Nov 2, 2005, at 2:24 PM, Miguel Arroz wrote:
Hi!
I'm studying how to add unit tests to an WebObjects application.
I would like to use xCode (i hate eclipse).
You like Xcode?!!? You hate Eclipse?!!? What you been smokin'
Willis? Ha
Slightly different topic, but how do you write tests at the
component level?
Short: Don't. Instead, write code that can be tested independently.
Long: http://pragmaticprogrammer.com/starter_kit/utj (for example)
My WOComponent classes need a WOContext in the constructor. And
there needs to
Slightly different topic, but how do you write tests at the component
level? My WOComponent classes need a WOContext in the constructor.
And there needs to be a running applicaiton, or else you run into
NullPointerExceptions.
I can fake a WOContext by manually creating a WORequest with th
I'm studying how to add unit tests to an WebObjects application. I
would like to use xCode (i hate eclipse).
I highly recommend you take another look at Eclipse (or IntelliJ if you
can afford it). Xcode might be a good IDE for C based projects, but for
Java projects you can dramatically incr
On Nov 2, 2005, at 2:24 PM, Miguel Arroz wrote:
Hi!
I'm studying how to add unit tests to an WebObjects application.
I would like to use xCode (i hate eclipse).
You like Xcode?!!? You hate Eclipse?!!? What you been smokin'
Willis? Hating Eclipse and liking IntelliJIDEA I can underst
Hi!
I'm studying how to add unit tests to an WebObjects application. I
would like to use xCode (i hate eclipse).
Two questions:
- Does WOUnitTest (http://wounittest.sourceforge.net/) still
works? I see it's not updated since 3/2004...
- How to integrate JUnit with xCode?
Yours
69 matches
Mail list logo