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 (Webobjects-dev@lists.appl

Re: Test message please ignore

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

Re: WOAdaptor build and test

2016-04-12 Thread Chuck Hill
gt;> >> >> >> On 2016-04-07, 11:24 AM, "Paul Yu" wrote: >> >>> 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 >>> >&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 JavaMonitor >and I can access WOTaskd, and when I tick ON in JavaMonitor I can tail -f >App-1 and s

Re: WOAdaptor build and test

2016-04-12 Thread Paul Yu
hows >> the module loaded then I should be fine? >> >> Paul >> >>> On Apr 7, 2016, at 2:22 PM, Chuck Hill wrote: >>> >>> Install it and use it to access the app. If it compiles, it is pretty much >>> a binary test, either it cras

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 vers

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 wrote: > > Install it and use it to access the app. If it compiles, it is pretty much a > binary test, either it c

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: > WebObjects and Apache

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, "webobjects-dev-bounces+chill=gevityinc@lists.apple

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: https:

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

2015-02-21 Thread Chuck Hill
ot; wrote: Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC mailto: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().someAttribut

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

2015-02-21 Thread OC
all the best, OC > On 2015-02-21, 3:42 AM, "OC" wrote: > > Anyway, back to the original question -- > > On 20. 2. 2015, at 18:27, OC wrote: > Actually _this_ should not be weird, this should be quite a normal code; the > only requirement is that check-and

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

2015-02-21 Thread Chuck Hill
e: Anyway, back to the original question -- On 20. 2. 2015, at 18:27, OC mailto: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(),n

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 mailto: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_r

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 in

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 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, >>> >>> === >>>

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 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” >> -- frankly I

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 mailto: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 i

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 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 object

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 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(),newAttr

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)) {

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 >&g

Re: Mailing List Test

2014-02-27 Thread Aaron Rosenzweig
#x27;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 > > __

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 admi

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: 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" wrote: >All, > >I have an app that I want to use groups sync to keep multiple instances >

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 that fail randomly with wounit

2013-06-18 Thread Pascal Robert
fail > to date when 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 u

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

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

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

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: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
m Worman 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 direc

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

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
ommons.httpclient.NoHttpResponseException) caught when >>>>>> processing request: The server download.eclipse.org failed to respond >>>>>> Apr 23, 2013 2:10:50 PM org.apache.commons.httpclient.HttpMethodDirector >>>>>> executeWithRetry >

Re: anyone want to test an update to golipse?

2013-04-26 Thread Bastian Triller
t;>>> executeWithRetry > >>>> INFO: Retrying request > >>>> Installation failed. > >>>> The installable unit > >>>> org.zeroturnaround.eclipse.debug.feature.feature.group has not been > >>>> found. > >>&g

Re: anyone want to test an update to golipse?

2013-04-26 Thread Tim Worman
iled. >>>> The installable unit >>>> org.zeroturnaround.eclipse.debug.feature.feature.group has not been found. >>>> Application failed, log file location: >>>> /Users/worman/Desktop/eclipse/configuration/1366751366848.log >>>> Cl

Re: anyone want to test an update to golipse?

2013-04-24 Thread Tim Worman
orman/Desktop/eclipse/configuration/1366751366848.log >>> Cleaning up … >>> >>> Tim >>> UCLA GSE&IS >>> >>> On Apr 23, 2013, at 11:31 AM, Bastian Triller >>> wrote: >>> >>>> On Tue, Apr 23, 2013 at 8:13 PM, Tim

Re: anyone want to test an update to golipse?

2013-04-24 Thread David LeBer
#x27;m >>> just beginning so I'm not sure yet which options might break yet. I'm >>> examining the script, looking at all the plugins that get installed and >>> their associated update sites. >>> >>> The update site for WOLips is: http

Re: anyone want to test an update to golipse?

2013-04-24 Thread Tim Worman
> > their associated update sites. > > > > The update site for WOLips is: http://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? > > Eclipse 3.8 is only a bugfix

Re: anyone want to test an update to golipse?

2013-04-23 Thread Bastian Triller
WOLips is: http://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? > > Eclipse 3.8 is only a bugfix release for 3.7, so WOLips 3.7 works with > Eclipse 3.8 as well. > > >

Re: anyone want to test an update to golipse?

2013-04-23 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 > ___ >

Re: anyone want to test an update to golipse?

2013-04-23 Thread Bastian Triller
rks 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

anyone want to test an update to golipse?

2013-04-23 Thread Tim Worman
for WOLips is: http://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 ign

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 on it

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

Re: how open database connection for test

2012-04-16 Thread Alexis Tual
, Alex 2012/4/17 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*

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/fi

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

Re: JUnit Test Initialization

2011-02-01 Thread Joe Kramer
r_loc_WOLips:YOURPROJECT} for this to work. > > John > > On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer wrote: > >> Hi Everyone, >> >> I'm writing my first JUnit test for a WebObjects Application and I've hit >> a roadblock. I need acc

Re: JUnit Test Initialization

2011-02-01 Thread John Huss
this to work. John On Tue, Feb 1, 2011 at 3:44 PM, Joe Kramer 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 ru

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

Re: test

2010-09-13 Thread Louis Demers
> 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 response utilities you talked about at WOWODC2010 ? and how to ge

Re: test

2010-09-13 Thread Kieran Kelleher
sper reports presentation 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

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

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 you

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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.c

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
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 the link: > > http://moreunit.sourceforge.net/index.html > > Cheers, > Katya &

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&#

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

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 ecli

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 f

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

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 Respo

Re: Using Jmeter to test WO

2009-05-17 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 3:5

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 (Webobjects-dev@lists.apple

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

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 t

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: 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 url

Re: Problem loading EOModel in a unit test on Windows

2009-04-29 Thread Cheong Hee (Gmail-P)
tp://wiki.objectstyle.org/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 Subject: Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles) T

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 _

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

2009-04-29 Thread Jake MacMullin
'path' component 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 Henri

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

2009-04-29 Thread Henrique Prange
ndle()' to a list and then adding all 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 bun

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 b

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

2009-04-29 Thread Jake MacMullin
;NSBundle.mainBundle()' to a list and then adding all 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 'ma

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

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, 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-ar

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: STATISTICS Has anybody else had this --- does this mean that I need to update the apache adaptor? cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin

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

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 u

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 Par

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 adding/ma

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 _lo

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

2008-04-07 Thread David Avendasora
Unfortunately, no. There's _lots_ of differences. There are a number of attributes that they share, but they each have completely different business logic for deriving those values, and they each have attributes that are unique to themselves that would make no sense to have on the other.

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

2008-04-07 Thread Alexander Spohr
What are the other differences between RawMaterial and ManufacturedPart? Wouldn’t it be enough to just flag the RawMaterial ones as such and just have one class for both? atze Am 07.04.2008 um 18:02 schrieb David Avendasora: You know, I was hoping to avoid the whole question if the d

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

2008-04-07 Thread David Avendasora
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 Parts. These component Parts can be _either_ a RawMateri

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

2008-04-07 Thread Chuck Hill
On Apr 7, 2008, at 9:02 AM, David Avendasora wrote: You know, I was hoping to avoid the whole question if the domain was actually well-modeled or not, but with such dispersions cast on my flawless modeling skills, I must respond! :-P :-) I have 2 types of Parts. One purchased from an out

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

2008-04-07 Thread David Avendasora
You know, I was hoping to avoid the whole question if the domain was actually well-modeled or not, but with such dispersions cast on my flawless modeling skills, I must respond! :-P I have 2 types of Parts. One purchased from an outside vendor (RawMaterial), and ones that are manufactured (

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, Mike Schrag 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. I was going to say in my original that instanceof is a code smell, also, actually, but we disa

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 yo

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 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 ch

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

2008-04-07 Thread Ken Anderson
On Apr 7, 2008, at 11:28 AM, Chuck Hill wrote: 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 .

  1   2   >