Problem calling NSBundle.bundleForClass from junit test code

2018-09-18 Thread Ricardo Parada
Hi all, I am running a junit test case. The code there wants to load a file that resides in the Resources folder from the framework bundle. That framework is where the class I am testing and the junit class reside. However, this returns null: NSBundle bundle = NSBundle.bundleForClass

Re: just a test

2017-02-06 Thread Morris, Mark
Apparently we’re back up. > On Feb 4, 2017, at 6:13 PM, Theodore Petrosky wrote: > > are we back up? or is this the end? > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list

Re: Test message please ignore

2016-08-14 Thread Ken Anderson
apparently not! > On Aug 14, 2016, at 10:30 AM, Theodore Petrosky <tedp...@yahoo.com> wrote: > > Is there a problem with the webobjects dev email system? > > Just a test > > Ted > ___ > Do not post admin requests

Re: WOAdaptor build and test

2016-04-12 Thread Chuck Hill
hen I should be fine? >>> >>> Paul >>> >>>> On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote: >>>> >>>> Install it and use it to access the app. If it compiles, it is pretty >>>&g

Re: WOAdaptor build and test

2016-04-12 Thread Patrick Middleton
On 12/04/2016 12:48, "webobjects-dev-bounces+pmiddleton=onestep.co...@lists.apple.com on behalf of Paul Yu" wrote: >Chuck > >If I have Apache 2.4 running and I can access it, and I can access

Re: WOAdaptor build and test

2016-04-12 Thread Paul Yu
piled and loaded into Apache 2.4 and apachectl -M shows >> the module loaded then I should be fine? >> >> Paul >> >>> On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote: >>> >>> Install it and use it to access the app.

Re: WOAdaptor build and test

2016-04-07 Thread Chuck Hill
2 PM, Chuck Hill <ch...@gevityinc.com> wrote: >> >> Install it and use it to access the app. If it compiles, it is pretty much >> a binary test, either it crashes or it works fine. Try a file upload too. >> I don’t recall ever hearing of any “it mostly works except fo

Re: WOAdaptor build and test

2016-04-07 Thread Paul Yu
So if I’ve got it compiled and loaded into Apache 2.4 and apachectl -M shows the module loaded then I should be fine? Paul > On Apr 7, 2016, at 2:22 PM, Chuck Hill <ch...@gevityinc.com> wrote: > > Install it and use it to access the app. If it compiles, it is pretty much a

Re: WOAdaptor build and test

2016-04-07 Thread Chuck Hill
Install it and use it to access the app. If it compiles, it is pretty much a binary test, either it crashes or it works fine. Try a file upload too. I don’t recall ever hearing of any “it mostly works except for this one edge case” bugs due to version updates. Chuck On 2016-04-07, 6:00

Re: WOAdaptor build and test

2016-04-07 Thread Paul Yu
Once I have the woadaptor built, how do I know that it is actually working by itself? Paul Sent from my iPad > On Apr 6, 2016, at 5:43 PM, Chuck Hill wrote: > > Testing? Seriously? :-P If it does not crash, it is tested. > > Look in the archives for these threads: >

Re: WOAdaptor build and test

2016-04-06 Thread Chuck Hill
Testing? Seriously? :-P If it does not crash, it is tested. Look in the archives for these threads: WebObjects and Apache 2.4 on El Capitan Apache Adaptor on debian:jessie That should get you started. Chuck On 2016-04-06, 11:45 AM,

WOAdaptor build and test

2016-04-06 Thread Paul Yu
Hi List Is there a procedure for building and testing WOAdaptor? Paul ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:

FrontBase triggers howto (was: Never save objects which don't pass a test (was: searching for a weird deletion))

2015-02-21 Thread OC
Hello there, after having played for a time with constraints, I have decided to use a trigger instead -- main reason is that I really want the validation performed on INSERT only; a constraint might get evaluated in other occassions, too. Nevertheless, I can't find a decent way of doing that

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
Chuck, On 20. 2. 2015, at 19:37, Chuck Hill ch...@gevityinc.com wrote: One way would be to twist the DB to do the complete restraint to me, something like to a pseudo-code “inserted_row.attr=MAX(SELECT attr FROM this_table WHERE another_attr.isValid) AND couple more similar conditions” --

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC o...@ocs.cz wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread Chuck Hill
, back to the original question -- On 20. 2. 2015, at 18:27, OC o...@ocs.czmailto:o...@ocs.cz wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread Chuck Hill
I don’t know, I suggest asking on the FrontBase developers list. On 2015-02-21, 2:55 AM, OC wrote: Chuck, On 20. 2. 2015, at 19:37, Chuck Hill ch...@gevityinc.commailto:ch...@gevityinc.com wrote: One way would be to twist the DB to do the complete restraint to me, something like to a

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread OC
, === if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) { def new=EOUtilities.createAndInsertInstance(eo.editingContext(),'SomeRelationshipTarget') new.someAttribute=newAttributeValue eo.editingContext().saveChanges() } === so that I can be absolutely sure that nobody stores

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-21 Thread Chuck Hill
: Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC o...@ocs.czmailto:o...@ocs.cz wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread Ramsey Gurley
On Feb 20, 2015, at 12:09 PM, OC o...@ocs.cz wrote: it must pass a slightly more complex test than uniqueness: - when inserted into PRICE_OFFERS table, - the newly inserted object must have value in column PRICE, which is higher, - than any (max) of the already existing objects

Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread OC
Chuck, Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) { def new=EOUtilities.createAndInsertInstance(eo.editingContext

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread Chuck Hill
On 2015-02-20, 12:30 PM, Ramsey Gurley wrote: On Feb 20, 2015, at 12:09 PM, OC o...@ocs.czmailto:o...@ocs.cz wrote: it must pass a slightly more complex test than uniqueness: - when inserted into PRICE_OFFERS table, - the newly inserted object must have value in column PRICE, which is higher

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread Chuck Hill
On 2015-02-20, 9:27 AM, OC wrote: Chuck, Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === if (TEST(eo.someRelationship().someAttribute(),newAttributeValue)) { def new

Re: Never save objects which don't pass a test (was: searching for a weird deletion)

2015-02-20 Thread OC
Chuck, On 20. 2. 2015, at 19:37, Chuck Hill ch...@gevityinc.com wrote: Actually _this_ should not be weird, this should be quite a normal code; the only requirement is that check-and-save, i.e., conceptually, === [1] if (TEST(eo.someRelationship().someAttribute(),newAttributeValue

Mailing List Test

2014-02-27 Thread Phil Wright
Greetings, Just a test. -Phil ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options

Re: Mailing List Test

2014-02-27 Thread Phil Wright
Greetings Everyone, Seems like I haven't successfully registered on this list since I haven't received my mail below. How do I register? -Phil On 2/28/2014 2:05 AM, Phil Wright wrote: Greetings, Just a test. -Phil ___ Do not post admin requests

Re: Mailing List Test

2014-02-27 Thread Aaron Rosenzweig
haven't successfully registered on this list since I haven't received my mail below. How do I register? -Phil On 2/28/2014 2:05 AM, Phil Wright wrote: Greetings, Just a test. -Phil ___ Do not post admin requests to the list

Test multi-process sync in dev?

2013-10-09 Thread Ken Anderson
All, I have an app that I want to use groups sync to keep multiple instances up to date. I have it running, but haven't come up with a great way to test. Is there an easier way than doing a typical production setup? using wotaskd ? Right now, I test with apache, but with a URL that has

Re: Test multi-process sync in dev?

2013-10-09 Thread Chuck Hill
Deploy through Apache on your laptop or test server. Then use something like JMeter to simulate load that is editing the EOs. Chuck On 2013-10-09 12:06 PM, Ken Anderson kenli...@anderhome.com wrote: All, I have an app that I want to use groups sync to keep multiple instances up to date

Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi, I have a test that succeed sometime and fail other times. If I run the jUnit source that contain this test, it fail sometime in the loadPermission() method. I have no idea where to look at. It is even more strange that sometime, I can have 6 successful tests and after 4 failed in a row

Re: Test that fail randomly with wounit

2013-06-18 Thread Chuck Hill
Hi Samuel, JUnit can/will run tests in a different order each time. So if your tests depend on something else having happened (EOF getting fully initialized, some other test running first) you will see random failures like this. I think it an/will run tests in multiple threads too (I use

Re: Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi Chuck, Hi Samuel, JUnit can/will run tests in a different order each time. So if your tests depend on something else having happened (EOF getting fully initialized, some other test running first) you will see random failures like this. I think it an/will run tests in multiple

Re: Test that fail randomly with wounit

2013-06-18 Thread Samuel Pelletier
Hi Chuck, I think your last comment was correct: I think that means a model is being used that is not yet in an EOModelGroup. I added the model name to the new MockEditingContext() call and no more fail to date when I run only this test class. If I run the complete project tests, I still

Re: Test that fail randomly with wounit

2013-06-18 Thread Pascal Robert
I run only this test class. If I run the complete project tests, I still have intermittent fail at the same place even after adding the model name to all the MockEditingContext constructors. I hate intermittent problems! Maybe Henrique Prange understand the situation. If the model name

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Re: anyone want to test an update to golipse?

2013-04-26 Thread Bastian Triller
with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
3.7 stable be used with Eclipse 3.8? Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
Hi David: The plugin install is done by the P2 director script which should be downloaded to /tmp (then deleted at completion). I haven't made any changes in the way that works. I haven't run go_wolips from within my target directory but I'll give it a try to test. What's interesting from

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
...@thetimmy.com wrote: Hi David: The plugin install is done by the P2 director script which should be downloaded to /tmp (then deleted at completion). I haven't made any changes in the way that works. I haven't run go_wolips from within my target directory but I'll give it a try to test

Re: anyone want to test an update to golipse?

2013-04-24 Thread Tim Worman
with Eclipse 3.8? Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

Re: anyone want to test an update to golipse?

2013-04-24 Thread David LeBer
works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Re: anyone want to test an update to golipse?

2013-04-24 Thread Tim Worman
or should 3.7 stable be used with Eclipse 3.8? Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list

anyone want to test an update to golipse?

2013-04-23 Thread Tim Worman
://wocommunity.org/wolips/3.7/stable Do we have an update site for a WOLips 3.8 or should 3.7 stable be used with Eclipse 3.8? Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

Re: anyone want to test an update to golipse?

2013-04-23 Thread Bastian Triller
, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman

Re: anyone want to test an update to golipse?

2013-04-23 Thread Tim Worman
with Eclipse 3.8? Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

Re: anyone want to test an update to golipse?

2013-04-23 Thread Bastian Triller
for 3.7, so WOLips 3.7 works with Eclipse 3.8 as well. Also, if anyone wants to test it, let me know. Tim ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help

test, please ignore

2013-01-29 Thread Musall Maik
bounce test ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive

test - ignore

2012-12-20 Thread Kieran Kelleher
test - ignore ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive

test, please ignore

2012-12-13 Thread Patrick Middleton
test, please ignore This email, including any attachments, is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient you must not disseminate, distribute or copy any part of this email nor take any action in reliance

test

2012-08-15 Thread Markus Ruggiero
TEST please ignore (have not received anything from the apple list server for two days) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

how open database connection for test

2012-04-16 Thread g.alexandre
hi, I want open database connection for create unit testing initialization with database access. I have test: @Test public void test(){ ERXExtensions.initApp(Application.class, new String[0]); EOModel model = new EOModel(new URL(file:///Users/dev1/Documents/head/fitTest

Re: how open database connection for test

2012-04-16 Thread Alexis Tual
, Alex 2012/4/17 g.alexandre g.alexan...@symaris.com hi, I want open database connection for create unit testing initialization with database access. I have test: @Test public void test(){ ERXExtensions.initApp(Application.*class*, *new* String[0]); EOModel model = *new* EOModel(*new

Test

2012-02-23 Thread ISHIMOTO Ken
Sorry, it is a Test Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects

JUnit Test Initialization

2011-02-01 Thread Joe Kramer
Hi Everyone, I'm writing my first JUnit test for a WebObjects Application and I've hit a roadblock. I need access to some of the data in the database. When I just try to run the test I get an error: java.lang.IllegalArgumentException: An object store for the entity Account could not be found

Re: JUnit Test Initialization

2011-02-01 Thread John Huss
} for this to work. John On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer jkra...@cyberapps.net wrote: Hi Everyone, I'm writing my first JUnit test for a WebObjects Application and I've hit a roadblock. I need access to some of the data in the database. When I just try to run the test I get an error

test

2010-09-13 Thread Kieran Kelleher
since my mac.com emails are not going thru it seems.. let's switch to gmail address... ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update

Re: test

2010-09-13 Thread Louis Demers
Hi Kierian, to further test your new e-mail, could you tell me if you distributed the long response utilities you talked about at WOWODC2010 ? and how to get to it. If so is there a place that uses it that I can peruse ... 8-) Cheers. On 2010-09-13, at 13:51 , Kieran Kelleher wrote

Re: test

2010-09-13 Thread Kieran Kelleher
slides or have not succeeded in connecting to the WOWODC 2010 podcast feed, let me know and I can email the repository details to you. Regards, Kieran On Sep 13, 2010, at 9:12 PM, Louis Demers wrote: Hi Kierian, to further test your new e-mail, could you tell me if you distributed the long

Re: test

2010-09-13 Thread Louis Demers
wrote: Hi Kierian, to further test your new e-mail, could you tell me if you distributed the long response utilities you talked about at WOWODC2010 ? and how to get to it. If so is there a place that uses it that I can peruse ... 8-) Cheers. Louis Demers eng. www.obzerv.com

This is a test.....

2010-08-20 Thread Kieran Kelleher
___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:

test

2009-12-20 Thread Ren, Kevin
Tried send topic twice, but no appeared there Sorry about this, Kevin This e-mail and any attachments to it (the Communication) is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in

Re: JUnit test method generation

2009-12-13 Thread Ramsey Lee Gurley
just installed it, so I will see if perhaps I'm wrong about that though. Thanks again for the tip! Ramsey On Dec 13, 2009, at 2:45 AM, Katya Yurukova wrote: Hi Ramsey, You should try the moreUnit plug-in for Eclipse. It is capable of adding single method stubs for already existing test

JUnit test method generation

2009-12-12 Thread Ramsey Lee Gurley
Hi all, I'm wondering if there is an easier way to generate a JUnit test method stub for a test class that already exists. Let's say I have a class Foo with method bar(). When I generate the JUnit test FooTest in eclipse, I can select the methods and generate the source stub for testBar

Re: JUnit test method generation

2009-12-12 Thread Ray Kiddy
On Dec 12, 2009, at 8:14 AM, Ramsey Lee Gurley wrote: Hi all, I'm wondering if there is an easier way to generate a JUnit test method stub for a test class that already exists. Let's say I have a class Foo with method bar(). When I generate the JUnit test FooTest in eclipse, I can

Re: JUnit test method generation

2009-12-12 Thread Ramsey Lee Gurley
On Dec 12, 2009, at 7:02 PM, Ray Kiddy wrote: On Dec 12, 2009, at 8:14 AM, Ramsey Lee Gurley wrote: Hi all, I'm wondering if there is an easier way to generate a JUnit test method stub for a test class that already exists. Let's say I have a class Foo with method bar(). When I

Re: JUnit test method generation

2009-12-12 Thread Katya Yurukova
Hi Ramsey, You should try the moreUnit plug-in for Eclipse. It is capable of adding single method stubs for already existing test classes. It needs a bit of adjustment so it can find your test classes, but if you have some naming convention for your test classes you should be OK. Here's

Re: Using Jmeter to test WO

2009-05-21 Thread Amiel Montecillo
I am running to some annoying stuff using JMeter to test my wo app. I used the HTTP Proxy Server to layout the samplers. Then had the Regular expression extractor to handle the session_id. But when I run the JMeter script. I often get a You backtracked too far error. On some of the sample. I

Re: Using Jmeter to test WO

2009-05-18 Thread Amiel Montecillo
I am trying out JMeter for the first time. It seems straightforward and powerful. May I ask what's the best way to determine that a particular request operation succeeded? Is it through the use of Response Assertions checking for some desired text to be returned? Amiel On Mon, May 11, 2009 at

Re: Using Jmeter to test WO

2009-05-18 Thread Antoine LAGIER
You can use-it, it works very well. Le 18 mai 09 à 08:41, Amiel Montecillo a écrit : I am trying out JMeter for the first time. It seems straightforward and powerful. May I ask what's the best way to determine that a particular request operation succeeded? Is it through the use of

Re: Using Jmeter to test WO

2009-05-11 Thread Antoine LAGIER
Thank you John, Other useful link http://wiki.objectstyle.org/confluence/display/WO/Testing-Load+Testing+WO+Apps+with+JMeter ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Re: Using Jmeter to test WO

2009-05-09 Thread Dov Rosenberg
We use Jmeter all the time to test our WO apps. The trick is to use the Regular Expression Extractor component (located under Post Processors). Add this component after the first WO page that creates the session id. Set the following fields: Reference Name: wovars Regular Expression: /MyApp

Using Jmeter to test WO

2009-05-08 Thread Antoine LAGIER
We try to use a simple test with Jmeter to test a WO dev. - In this script we try to connect to the site /cgi-bin/WebObjects/myapp.woa/ - Login with a account : /cgi-bin/WebObjects/myapp.woa/2/wa/LoginAction/doLogin so we need to get and set the wosid (wosid = 3V8YgnSQikFjJleLOXbGzw

Re: Using Jmeter to test WO

2009-05-08 Thread John Ours
On May 8, 2009, at 6:05 PM, Antoine LAGIER wrote: We try to use a simple test with Jmeter to test a WO dev. so we need to get and set the wosid (wosid = 3V8YgnSQikFjJleLOXbGzw ) and to get and set the number of the instance (/2 ) in the Jmeter process You don't actually need to get

Re: Problem loading EOModel in a unit test on Windows

2009-04-30 Thread Cheong Hee (Gmail-P)
/confluence/display/WO/Web+Applications-Development-Development+on+Windows Cheers Cheong Hee Message: 9 Date: Wed, 29 Apr 2009 10:09:12 -0300 From: Henrique Prange hpra...@gmail.com Subject: Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles) To: WebObjects

Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-30 Thread Henrique Prange
Hi Mike, Copied from bug 5941664: This problem occurs because of a conversion from URL to String in the NSBundle class. The Java URLDecoder class could be used to solve this problem. Below is a possible fix that could be done on __exctractStringFromURL private method of NSBundle: String

Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-29 Thread Jake MacMullin
of the 'NSBundle.frameworkBundles()'. The problem is that when running a unit test on Windows NSBundle.mainBundle() returns null and 'modelGroupForLoadedBundles()' doesn't bother to check for null before adding the 'main bundle' to the list of 'loaded bundles'. So - why does NSBundle.mainBundle() return null

Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-29 Thread Mike Schrag
2. Shall I bother submitting a bug report via Radar (given that Mike fixed the last bug I found before I'd managed to finish writing the bug report)? yeah .. because this one is annoying :) ms ___ Do not post admin requests to the list. They will

Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-29 Thread Henrique Prange
()'. The problem is that when running a unit test on Windows NSBundle.mainBundle() returns null and 'modelGroupForLoadedBundles()' doesn't bother to check for null before adding the 'main bundle' to the list of 'loaded bundles'. So - why does NSBundle.mainBundle() return null on Windows but not on OS X

Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-29 Thread Jake MacMullin
and a 'file path' is that URLs escape spaces as %20, while 'file paths' leave them as spaces. I've attached a unit test demonstrating the problem (and a potential solution) and I've reported the bug to Apple (6841776). Out of interest Henrique - was this the cause of the problem with spaces that you

Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)

2009-04-29 Thread Mike Schrag
(as an aside - wouldn't it be nice if this were an open source project and we could see each other's bug reports and submit patches? - one can only dream) dream away, dreamer ... jad works great, though. always submit a patch if you have one :) ms

Test, ignore

2009-01-06 Thread Kevin Windham
Testing ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:

test

2009-01-06 Thread Kieran Kelleher
test, sorry for any inconvenience ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options

Test, please ignore

2009-01-06 Thread Cheong Hee (Datasonic)
I have not received any emails for since 1/1/2009. This is just a test to see if the message does arrive at the list. Cheers Cheong Hee ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

WO 5.4.2 Test Deploy on Tiger

2008-07-09 Thread Andrew Lindesay
Hello; I keep getting this NSLog line... Instance Request: Error parsing: instanceRequest type=NSDictionary queryInstance type=NSStringSTATISTICS/queryInstance /instanceRequest Has anybody else had this --- does this mean that I need to update the apache adaptor? cheers. ___ Andrew

Re: Best Way(R) to test for existence of a relationship

2008-04-08 Thread Michael Bushkov
Just my 2 cents to the discussion ) If we consider the object model to be correct then the task of traversing the array with 2 types of objects seems to be ideal for the Visitor pattern. Am I missing something? On 4/8/08, David Avendasora [EMAIL PROTECTED] wrote: Unfortunately, no. There's

Re: Best Way® to test for existence of a re lationship

2008-04-08 Thread Kieran Kelleher
An alternative way to handle this is to use the Strategy design pattern and just have one Entity ... Part. You would then create a PartBehaviour interface that encapsulates all the things that vary among the various parts. It would give you great flexibility to easily (easier than

Re: Best Way® to test for existence of a rela tionship

2008-04-08 Thread Chuck Hill
On Apr 7, 2008, at 10:50 AM, David Avendasora wrote: On Apr 7, 2008, at 1:23 PM, Chuck Hill wrote: I have 2 types of Parts. One purchased from an outside vendor (RawMaterial), and ones that are manufactured (ManufacturedPart). A ManufacturedPart is made up of any number of component

Re: Best Way® to test for existence of a re lationship

2008-04-08 Thread David Avendasora
Kieran, Hmm. Your ideas are intriguing to me and I wish to subscribe to your newsletter. I'm going to take a serious look at using this in the future as I can see adding other classes and being able to morph from one behavior to another could be helpful as well. Thanks for the heads

Re: Best Way® to test for existence of a re lationship

2008-04-08 Thread Mike Schrag
However, if you are under pressure to Just Fix It right now, then Chuck's solution might be easiest and quickest. Actually, if you're under pressure to Just Fix It right now ... I would Just Leave It Alone :) It's only wrong because we're grumpy software developers. Your current code gets

Best Way® to test for existence of a relationsh ip

2008-04-07 Thread David Avendasora
Hi all, This is more of a Java question than a WO-specific one I have an Inheritance structure in my app: Part (abstract Superclass) RawMaterial (subclass of Part) ManufacturedPart (subclass of Part) I have an NSArray of Parts that could be, RawMaterial instances, ManufacturedPart

Re: Best Way® to test for existence of a relatio nsh ip

2008-04-07 Thread Bob Stuart
Try catch seems expensive to me. Why not just check with if (aPart instanceof ManufacturedPart){ do something with aPart.billsOfMaterial() } At 9:12 AM -0400 4/7/08, David Avendasora wrote: Hi all, This is more of a Java question than a WO-specific one I have an Inheritance structure

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Chuck Hill
I'd expect the instanceof check will be much more efficient than catching an exception. From an OO design point of view, I'd add a billsOfMaterial() method to the Part class that simply returns NSArray.emptyArray. ManufacturedPart will then override this to return the correct result for

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Mike Schrag
I'd expect the instanceof check will be much more efficient than catching an exception. By far ... From an OO design point of view, I'd add a billsOfMaterial() method to the Part class that simply returns NSArray.emptyArray. ManufacturedPart will then override this to return the correct

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread David Avendasora
On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote: I'd expect the instanceof check will be much more efficient than catching an exception. By far ... From an OO design point of view, I'd add a billsOfMaterial() method to the Part class that simply returns NSArray.emptyArray.

Re: Best Way® to test for existence of a rela t ionsh ip

2008-04-07 Thread Bob Stuart
At 11:20 AM -0400 4/7/08, David Avendasora wrote: On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote: I'd expect the instanceof check will be much more efficient than catching an exception. By far ... From an OO design point of view, I'd add a billsOfMaterial() method to the Part class that

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Chuck Hill
On Apr 7, 2008, at 7:36 AM, Mike Schrag wrote: I'd expect the instanceof check will be much more efficient than catching an exception. By far ... From an OO design point of view, I'd add a billsOfMaterial() method to the Part class that simply returns NSArray.emptyArray.

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Chuck Hill
On Apr 7, 2008, at 8:26 AM, Bob Stuart wrote: At 11:20 AM -0400 4/7/08, David Avendasora wrote: On Apr 7, 2008, at 10:36 AM, Mike Schrag wrote: I'd expect the instanceof check will be much more efficient than catching an exception. By far ... From an OO design point of view, I'd add a

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Mike Schrag
Using instanceof on a member of an inheritance hierarchy is a bad code smell. It is the code's ways of telling you that your design is wrong. IMO. I was going to say in my original that instanceof is a code smell, also, actually, but we disagree on the level of ugliness :) You're just

Re: Best Way® to test for existence of a rela tionsh ip

2008-04-07 Thread Chuck Hill
On Apr 7, 2008, at 8:45 AM, Ken Anderson wrote: Using instanceof on a member of an inheritance hierarchy is a bad code smell. It is the code's ways of telling you that your design is wrong. IMO. Almost as bad as using case statements! (doh!) Case statements are right out! Chuck

Re: Best Way® to test for existence of a rela tionship

2008-04-07 Thread Alexander Spohr
Fetch only ManufacturedParts. Don’t use the relationship to Parts (if that’s what you do) to get the NSArray. Either create a relationship to ManufacturedParts or fetch them using a qualifier. Iterating over a mixed NSArray wanting only one special class is bad design. Filter it before

  1   2   >