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/7427ea246f6db46b7e94 Cheers, - hugi > On 30. ágú. 2015, at 01:06, Pascal Robert <[email protected]> wrote: > > 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 -er.javamail.imapHost outlook.office365.com or > -Der.javamail.imapHost=outlook.office365.com, same results. > > Anyway to use properties that ERXProperties can find in a unit test? > ERXExtensions.initApp is called. > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
