You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by David Carver <d_...@yahoo.com> on 2010/05/13 18:35:50 UTC

XMLUnit for Unit Tests

I'm looking through some of the various XML unit tests, and notice that 
none are leveraging the XMLUnit test suite.   There are some advantages 
for using this test suite when looking at the result of the XML that is 
returned and comparing differences on DOMs and XML serialization.

Is there any particular reason that XML Unit isn't leveraged?  Does it 
need to go through an IP review in order to be used?

http://xmlunit.sourceforge.net/

Dave



Re: XMLUnit for Unit Tests

Posted by David Carver <dc...@intalio.com>.
Just as a side note, that I know it passed Eclipse's IP review, so I 
would expect it to probably pass an Apache IP review that might need to 
occur.

Dave

On 05/13/2010 02:13 PM, Rafal Rusin wrote:
> Looks like a good point for improvements.
> I'm not sure about copyright. It's not one of standard licenses, but
> it's open source. So it looks like we can use it.
>
> On 13 May 2010 09:35, David Carver<d_...@yahoo.com>  wrote:
>    
>> I'm looking through some of the various XML unit tests, and notice that none
>> are leveraging the XMLUnit test suite.   There are some advantages for using
>> this test suite when looking at the result of the XML that is returned and
>> comparing differences on DOMs and XML serialization.
>>
>> Is there any particular reason that XML Unit isn't leveraged?  Does it need
>> to go through an IP review in order to be used?
>>
>> http://xmlunit.sourceforge.net/
>>
>> Dave
>>
>>
>>
>>      
> This is license for XMLUnit 1.3:
>
> /*
> ******************************************************************
> Copyright (c) 2001-2009, Jeff Martin, Tim Bacon
> All rights reserved.
>
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions
> are met:
>
>      * Redistributions of source code must retain the above copyright
>        notice, this list of conditions and the following disclaimer.
>      * Redistributions in binary form must reproduce the above
>        copyright notice, this list of conditions and the following
>        disclaimer in the documentation and/or other materials provided
>        with the distribution.
>      * Neither the name of the xmlunit.sourceforge.net nor the names
>        of its contributors may be used to endorse or promote products
>        derived from this software without specific prior written
>        permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> POSSIBILITY OF SUCH DAMAGE.
>
> ******************************************************************
> */
>
>
>    


Re: XMLUnit for Unit Tests

Posted by Matthieu Riou <ma...@offthelip.org>.
The license in the trunk is BSD, which is fine as well.

Matthieu

On Thu, May 13, 2010 at 3:05 PM, Rafal Rusin <ra...@gmail.com> wrote:

> Cool. So maybe they migrated trunk to Apache 2.0, because LICENSE.txt
> file from latests distro doesn't say that.
>
> On 13 May 2010 14:55, David Carver <dc...@intalio.com> wrote:
> > Oh and the license is Apache 2.0
> >
> >
> http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/java-core/net/sf/xmlunit/builder/Input.java?revision=364&view=markup
> >
> > On 05/13/2010 02:13 PM, Rafal Rusin wrote:
> >>
> >> Looks like a good point for improvements.
> >> I'm not sure about copyright. It's not one of standard licenses, but
> >> it's open source. So it looks like we can use it.
> >>
> >> On 13 May 2010 09:35, David Carver<d_...@yahoo.com>  wrote:
> >>
> >>>
> >>> I'm looking through some of the various XML unit tests, and notice that
> >>> none
> >>> are leveraging the XMLUnit test suite.   There are some advantages for
> >>> using
> >>> this test suite when looking at the result of the XML that is returned
> >>> and
> >>> comparing differences on DOMs and XML serialization.
> >>>
> >>> Is there any particular reason that XML Unit isn't leveraged?  Does it
> >>> need
> >>> to go through an IP review in order to be used?
> >>>
> >>> http://xmlunit.sourceforge.net/
> >>>
> >>> Dave
> >>>
> >>>
> >>>
> >>>
> >>
> >> This is license for XMLUnit 1.3:
> >>
> >> /*
> >> ******************************************************************
> >> Copyright (c) 2001-2009, Jeff Martin, Tim Bacon
> >> All rights reserved.
> >>
> >> Redistribution and use in source and binary forms, with or without
> >> modification, are permitted provided that the following conditions
> >> are met:
> >>
> >>     * Redistributions of source code must retain the above copyright
> >>       notice, this list of conditions and the following disclaimer.
> >>     * Redistributions in binary form must reproduce the above
> >>       copyright notice, this list of conditions and the following
> >>       disclaimer in the documentation and/or other materials provided
> >>       with the distribution.
> >>     * Neither the name of the xmlunit.sourceforge.net nor the names
> >>       of its contributors may be used to endorse or promote products
> >>       derived from this software without specific prior written
> >>       permission.
> >>
> >> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> >> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> >> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> >> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> >> COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> >> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
> >> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
> >> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> >> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> >> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
> >> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> >> POSSIBILITY OF SUCH DAMAGE.
> >>
> >> ******************************************************************
> >> */
> >>
> >>
> >>
> >
> >
>
>
>
> --
> Regards,
> Rafał Rusin
>

Re: XMLUnit for Unit Tests

Posted by Rafal Rusin <ra...@gmail.com>.
Cool. So maybe they migrated trunk to Apache 2.0, because LICENSE.txt
file from latests distro doesn't say that.

On 13 May 2010 14:55, David Carver <dc...@intalio.com> wrote:
> Oh and the license is Apache 2.0
>
> http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/java-core/net/sf/xmlunit/builder/Input.java?revision=364&view=markup
>
> On 05/13/2010 02:13 PM, Rafal Rusin wrote:
>>
>> Looks like a good point for improvements.
>> I'm not sure about copyright. It's not one of standard licenses, but
>> it's open source. So it looks like we can use it.
>>
>> On 13 May 2010 09:35, David Carver<d_...@yahoo.com>  wrote:
>>
>>>
>>> I'm looking through some of the various XML unit tests, and notice that
>>> none
>>> are leveraging the XMLUnit test suite.   There are some advantages for
>>> using
>>> this test suite when looking at the result of the XML that is returned
>>> and
>>> comparing differences on DOMs and XML serialization.
>>>
>>> Is there any particular reason that XML Unit isn't leveraged?  Does it
>>> need
>>> to go through an IP review in order to be used?
>>>
>>> http://xmlunit.sourceforge.net/
>>>
>>> Dave
>>>
>>>
>>>
>>>
>>
>> This is license for XMLUnit 1.3:
>>
>> /*
>> ******************************************************************
>> Copyright (c) 2001-2009, Jeff Martin, Tim Bacon
>> All rights reserved.
>>
>> Redistribution and use in source and binary forms, with or without
>> modification, are permitted provided that the following conditions
>> are met:
>>
>>     * Redistributions of source code must retain the above copyright
>>       notice, this list of conditions and the following disclaimer.
>>     * Redistributions in binary form must reproduce the above
>>       copyright notice, this list of conditions and the following
>>       disclaimer in the documentation and/or other materials provided
>>       with the distribution.
>>     * Neither the name of the xmlunit.sourceforge.net nor the names
>>       of its contributors may be used to endorse or promote products
>>       derived from this software without specific prior written
>>       permission.
>>
>> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
>> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
>> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
>> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
>> COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
>> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
>> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
>> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
>> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
>> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
>> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
>> POSSIBILITY OF SUCH DAMAGE.
>>
>> ******************************************************************
>> */
>>
>>
>>
>
>



-- 
Regards,
Rafał Rusin

Re: XMLUnit for Unit Tests

Posted by David Carver <dc...@intalio.com>.
Oh and the license is Apache 2.0

http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/java-core/net/sf/xmlunit/builder/Input.java?revision=364&view=markup

On 05/13/2010 02:13 PM, Rafal Rusin wrote:
> Looks like a good point for improvements.
> I'm not sure about copyright. It's not one of standard licenses, but
> it's open source. So it looks like we can use it.
>
> On 13 May 2010 09:35, David Carver<d_...@yahoo.com>  wrote:
>    
>> I'm looking through some of the various XML unit tests, and notice that none
>> are leveraging the XMLUnit test suite.   There are some advantages for using
>> this test suite when looking at the result of the XML that is returned and
>> comparing differences on DOMs and XML serialization.
>>
>> Is there any particular reason that XML Unit isn't leveraged?  Does it need
>> to go through an IP review in order to be used?
>>
>> http://xmlunit.sourceforge.net/
>>
>> Dave
>>
>>
>>
>>      
> This is license for XMLUnit 1.3:
>
> /*
> ******************************************************************
> Copyright (c) 2001-2009, Jeff Martin, Tim Bacon
> All rights reserved.
>
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions
> are met:
>
>      * Redistributions of source code must retain the above copyright
>        notice, this list of conditions and the following disclaimer.
>      * Redistributions in binary form must reproduce the above
>        copyright notice, this list of conditions and the following
>        disclaimer in the documentation and/or other materials provided
>        with the distribution.
>      * Neither the name of the xmlunit.sourceforge.net nor the names
>        of its contributors may be used to endorse or promote products
>        derived from this software without specific prior written
>        permission.
>
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> POSSIBILITY OF SUCH DAMAGE.
>
> ******************************************************************
> */
>
>
>    


Re: XMLUnit for Unit Tests

Posted by Rafal Rusin <ra...@gmail.com>.
Looks like a good point for improvements.
I'm not sure about copyright. It's not one of standard licenses, but
it's open source. So it looks like we can use it.

On 13 May 2010 09:35, David Carver <d_...@yahoo.com> wrote:
> I'm looking through some of the various XML unit tests, and notice that none
> are leveraging the XMLUnit test suite.   There are some advantages for using
> this test suite when looking at the result of the XML that is returned and
> comparing differences on DOMs and XML serialization.
>
> Is there any particular reason that XML Unit isn't leveraged?  Does it need
> to go through an IP review in order to be used?
>
> http://xmlunit.sourceforge.net/
>
> Dave
>
>
>

This is license for XMLUnit 1.3:

/*
******************************************************************
Copyright (c) 2001-2009, Jeff Martin, Tim Bacon
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.
    * Neither the name of the xmlunit.sourceforge.net nor the names
      of its contributors may be used to endorse or promote products
      derived from this software without specific prior written
      permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

******************************************************************
*/


-- 
Regards,
Rafał Rusin