Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 31025 invoked from network); 1 Nov 2006 10:05:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 10:05:14 -0000 Received: (qmail 62267 invoked by uid 500); 1 Nov 2006 10:05:25 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 61989 invoked by uid 500); 1 Nov 2006 10:05:24 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 61980 invoked by uid 99); 1 Nov 2006 10:05:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 02:05:24 -0800 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kelvingoodson@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 02:05:12 -0800 Received: by nf-out-0910.google.com with SMTP id x29so564566nfb for ; Wed, 01 Nov 2006 02:04:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=QWgS6tHMHAhnb0viVxHX5KoGSu4s8dJu7eQF3rpn0WB3riBMW6x+Pazixm21klwEniIyg7CUDY8yv8rBdPt4nAlkPOOrG4ZlBWaWGOg8WvCoBtvypU2dTPl5+xpbYeQx56tWYukTm6YxYMvuXLzCe8nzAS7jXG7wC8fBKJnMNgQ= Received: by 10.78.178.5 with SMTP id a5mr8566096huf; Wed, 01 Nov 2006 02:04:47 -0800 (PST) Received: by 10.78.197.4 with HTTP; Wed, 1 Nov 2006 02:04:47 -0800 (PST) Message-ID: <9deac9fd0611010204x9b21d39r887af4738ed407fe@mail.gmail.com> Date: Wed, 1 Nov 2006 10:04:47 +0000 From: "kelvin goodson" Reply-To: kelvin@thegoodsons.org.uk To: tuscany-dev@ws.apache.org Subject: Re: SDO Java: Getting Involved -- Tests/Samples In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19976_28432170.1162375487436" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19976_28432170.1162375487436 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Andy, that's great thanks. This begs the question of how we proceed with code edits. Would you able to supply any updates you make as patches attached to a JIRA. I can then apply them to the code in svn. If you need any help with that I'm more than happy to help. (If you want interactive help I'm likely to be watching the IRC channel as "kgoodson" on the #Tuscany channel on irc.freenode.net.) It would be good to understand how you are currently working with this code in terms of source code control etc. and what your plans are as we move forward with this effort. Best Regards, Kelvin. On 01/11/06, Andy Grove (Contractor) wrote: > > Hi Kelvin, > > I agree with your edits to the createTestObjectTypes() test in > DataObjectListTest. This was clearly wrong. This has highlighted a > general issue on some of our tests which we are now rectifying. > > We are also investigating issues around INSTANCE variables and I agree > that we should at least avoid using them in the test cases so that we > can isolate the tests. I'll progress this here and get the tests > amended. > > I like the idea of having one vendor-specific TestHelperImpl abstracted > by an interface. I'll start the process of amending out tests to use > that. > > Thanks, > > Andy Grove. > > -----Original Message----- > From: Bryan Luoma [mailto:luoma@roguewave.com] > Sent: 31 October 2006 19:58 > To: tuscany-dev@ws.apache.org > Subject: RE: SDO Java: Getting Involved -- Tests/Samples > > Thanks Kelvin, > > > > I attached the XML instance documents (testdata.zip) referenced from the > junit test XMLDataObjectTest.java > > https://issues.apache.org/jira/browse/TUSCANY-829 > > > > The archive consists of the following documents: > > - catalog-10.xml > > - w3_sample.wsdl > > - lists.xml > > - simple.xml > > > > We are looking into the other questions/concerns and will be addressed > shortly. > > > > Thanks, > > Bryan > > > > > > ________________________________ > > From: kelvingoodson@gmail.com [mailto:kelvingoodson@gmail.com] On Behalf > Of kelvin goodson > Sent: Monday, October 30, 2006 2:22 PM > To: tuscany-dev@ws.apache.org > Cc: Bryan Luoma > Subject: Re: SDO Java: Getting Involved -- Tests/Samples > > > > I added the tests that were attached to TUSCANY-829 to my sandbox and > made some changes, see > http://svn.apache.org/viewvc?view=rev&revision=469239 > > The exercise has turned up issues in a number of areas; Tuscany > specific, interoperability, ... > > Looking at DataObjectListTest, one specific thing I'd like to understand > is what was intended in the method createTestObjectTypes(). What it > seemed to be doing is creating a very open model by setting the type of > the product2 property to commonj.sdo.DataObject, i.e. a mixed, > sequenced, open type that can hold pretty much anything, whereas what I > think was intended was that this property should be of type newType2 > (i.e. the type with name "product2"). Frank began looking at this with > the view that what was intended was the former arrangement, and the > failures we were getting has highlit an issue with Tuscany that we don't > create global properties to accompany type definitions created with > TypeHelper.define(), and we think we probably should, so I have opened > TUSCANY-887 to cover this. This was a useful catch, but then I have > taken the view that what was intended was that the type of the product2 > property should have been product2, and so I have changed the type > creation method, and I have altered the test to fit this, can you > please take a look to see if I am right. You can see the diff at .... > http://svn.apache.org/viewvc/incubator/tuscany/sandbox/kgoodson/roguewav > e-tests/src/test/java/com/roguewave/rwsf/sdo/DataObjectListTest.java?r1= > 469239&r2=469238&pathrev=469239 > > We have one remaining test failure in this test case which is the > testSubList() test, which I think may have revealed another Tuscany > issue, but I haven't dug into that yet. > > I have altered the TestHelper to give implementations that I think will > work when used by the XMLDataObjectTest but I haven't got close to > running that one yet. All the XMLDocumentTestCase tests currently fail > because of the setUp method, which requires access to the test data, > so if you could attach that data to TUSCANY-829 that would be great, > thanks. > > I've commented out some test cases that I didn't immediately know what > to do with, and added TODO flags to remind me to deal with those. > In some places the assertions are for RogueWave specific implementation > details such as > > // ensure we default to caching on > > assertEquals(((XMLDocumentImpl)doc).getOption("xpath-caching"), > "true"); > > assertEquals(3, docImpl.getXPathCacheSize()); > > > As to the more general points that can be gleaned from this exercise, > this is what I have so far .... > > My guess is that with the improvements in the 2.1 spec we can begin to > move much of the function that is found in TestHelper back out to the > tests themselves, or at least code them as support methods in terms of > the SDO 2.1 API. I have some half baked ideas about how in general to > abstract away any required implementation specific behaviour, but not > sufficiently well formed to be aired just yet. > > We have recently tried to remove as many references to the INSTANCE > fields in our Tuscany tests as possible, because they can cause cross > test interference. Maven builds an uber-test from all the * > TestCase.java files, and runs that test as a single process, so > alterations to the state of say TypeHelper.INSTANCE in one test class > can influence the execution of tests in another. So now we tend to > create local instances of the Helpers. The SDO spec group has a > proposal for deprecating the INSTANCE fields, which was intended to be > aimed at SDO 3, but there's a chance that it might come into SDO 2.1, > so we may be helped here with a new way of accessing helpers. > > An easy rule to create is that no test case in the shared set of tests > can directly import a class from an org.apache.tuscany.* package, nor > from a com.roguewave.* package. If the test requires some > implementation specific behaviour then that code must be housed in > something like a TestHelperImpl class. > > I've been making notes on the wiki at > http://wiki.apache.org/ws/Tuscany/TuscanyJava/Tests/RogueWave/Samples, > but these are the main points distilled from that raw dump. I'll keep > looking at the remaining issues and post more here soon. > > Regards, Kelvin. > > > > On 18/10/06, Bryan Luoma wrote: > > Hello, > > I am a member of the QA team at Rogue Wave Software. I work closely > with the HydraSDO Development Team on the HydraSDO for XML product (C++ > and Java). I recently attached a couple of sample Java tests that we > currently have in our junit test-suite which exercise HydraSDO for XML. > > The zip archive (sdo.zip) has been attached to the following JIRA: > http://issues.apache.org/jira/browse/TUSCANY-829 > > The archive consists of two junit tests (XMLDataObjectTest.java and > DataObjectList.java) and a helper class (TestHelper.java). > > XMLDataObjectTest.java has 120 test-cases that test the DataObject > interface. This test uses several underlying RW implementation specific > > classes to perform some of the work. This is not a generic SDO API test > that is ready to integrate into Tuscany. > > DataObjectListTest.java has 23 test-cases that test "list" functionality > of DataObject. This test does not use RW implementation specific > classes and should be easier to integrate into Tuscany as is. > > TestHelper.java is used by XMLDataObjectTest.java to help create > DataGraphs and load input files. The TestHelper also uses RW > implementation specific classes. > > We are excited and willing to contribute SDO unit-tests to the Tuscany > project. The purpose of this initial "drop" is to help identify what > steps need to be taken in order to simplify/maximize our contributions > and to benefit from additional SDO API tests authored by the Tuscany > project community. > > Sometime in the near future, RW will attempt to separate the RW > implementation specific tests from the generic SDO API tests as much as > possible. There has also been discussion of implementing an abstraction > layer that would allow Tuscany and RW to exchange tests to exercise the > respective products. > > We also have C++ unit tests (cxxTest Framework) that we use to exercise > HydraSDO. Sounds like this would be a separate JIRA all together? > > Thanks, > Bryan Luoma > > > -----Original Message----- > From: kelvin goodson [mailto: kelvingoodson@gmail.com > ] > Sent: Thursday, October 12, 2006 1:46 AM > To: tuscany-dev@ws.apache.org > Subject: Re: SDO Java: Getting Involved -- Tests/Samples > > Tom, > Welcome to Tuscany! that's great! Thanks for offering to get > involved. > How should we proceed? I'd be most happy to assist you to integrate > what > you have to offer. We currently have a small collection of tests using > the > junit framework (see > https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/impl/src/tes > t/java/org/apache/tuscany/sdo/) > but there's significant scope for enhancement. BTW I'm going to make my > response Java centric as Andrew has offered to help look at the C++ side > > of > things. > > How about this for a proposal for how to proceed? I have opened a JIRA > (this is our issue or bug tracking system if you are not familiar with > these > things --- please tell me if you are already an expert). The JIRA can > be > seen at http://issues.apache.org/jira/browse/TUSCANY-829 , and you can > upload attachments to the JIRA, so we could perhaps use that to first > attach a typical RogueWave test or two. I guess it's likely that there > will > be some modifications that need to be made with regards to setting up > the > test within our environment, but that way we could play and discuss how > > we > might proceed with more tests. > > How does that sound? > > Best Regards, Kelvin. > > > On 11/10/06, Andrew Borley < ajborley@gmail.com > > wrote: > > > > Hi Tom, > > > > Coming from the C++ side of Tuscany, I know we'd certainly be > > interested in those C++ SDO tests - please get involved! > > > > Cheers > > Andrew > > > > On 10/11/06, T Gould < gouldrw@gmail.com> wrote: > > > Kelvin - > > > > > > We at Rogue Wave have been developing an SDO product, HydraSDO, and > have > > a > > > seires of tests that might be easiliy modified so as to exercise > your > > Java > > > SDO product. We would be very interested in providing our tests as > well > > as > > > helping create a test environment (unless this has already been > done) to > > > futher test the SDO product. Additionally, we also have C++ tests. > > > > > > > > > tom gould > > > ------------------------------- > > > > > > As the Java M2 release is imminent it occured to me that it would be > > really > > > useful if there are users out there who are putting our code through > > its > > > paces that you may be developing samples/tests which could usefully > be > > > contributed back to the Tuscany project and make it more robust. If > you > > are > > > in such a position it would be really great to hear from you. > > > > > > Regards, Kelvin. > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: tuscany-dev-help@ws.apache.org > > ------=_Part_19976_28432170.1162375487436--