harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu" <sean.xx....@gmail.com>
Subject Re: [classlib][test] Bring ApacheDS into harmony test framework
Date Thu, 06 Sep 2007 04:59:14 GMT
2007/9/6, Stepan Mishura <stepan.mishura@gmail.com>:
>
> On 9/5/07, Spark Shen <smallsmallorgan@gmail.com> wrote:
> > 2007/9/5, Stepan Mishura <stepan.mishura@gmail.com>:
> > >
> > > On 9/5/07, Regis <xu.regis@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > I'm working on jndi ldap service provider now, a embedded ldap
> server is
> > > > required for testing. So i purpose to bring
> > > > ApacheDS(http://directory.apache.org/) to our dependency, which is
> an
> > > > embeddable directory server entirely written in Java, and has been
> > > > certified LDAPv3 compatible by the Open Group.
> > > >
> > >
> > > Hi,
> > >
> > > I'm afraid if we go this way then classlibrary testing will be
> > > complicated.
> > > Is it possible to test jndi service provider against lightweight-stub
> > > server implementation and develop full testing scenario for BTI?
> >
> >
> > After some thought, I have some concern about put Apache DS server into
> BTI.
> > Correctly If I am wrong.
> >
> > 1. Our ldap provider related test cases will be splitted into 2 parts
> > according to my propose. One part for testing connection. One part for
> test
> > other standalone functions such as encoding/decoding. Others whom are
> not
> > familiar with ldap would mistakenly thought we lacks of some test cases
> if
> > they only look at class library trunk.
> >
> > 2. We have precedents such as derby and jetty. The only difference is
> that
> > their jars are smaller than ours.
> >
> > 3. Sending a single LDAP request such as bind is too simple to be viewed
> as
> > a scenario.  Just as those test cases utilizing jetty or derby. I think
> > that's why they are not placed into BIT either.
> >
>
> Well, this is never ending discussion about testing - which tests
> classlibrary should contain, what the difference between unit test and
> functional test and so on. As far as I remember we never reached final
> agreement here :-)
>
> My personal opinion that classlibrary unit tests shouldn't require any
> external software for running. I they do then then corresponding
> testing scenario should be developed for BTI.



+1

Thanks,
> Stepan.
>
> > I hope it's not the size of Apache DS jars that complicate our test
> cases
> > :-)
> >
> > I have an eclectic solution. We put DS jars into BIT, while writing all
> the
> > ldap test cases in one place - class library trunk. Those test cases
> need
> > server support will be listed in exclude list. Only when executing
> scenario
> > test, will these test cases be downloaded to BIT.
> >
> > Thanks,
> > > Stepan.
> > >
> > > > I have risen a jira and applied a patch at:
> > > > https://issues.apache.org/jira/browse/HARMONY-4739
> > > >
> > >
> >
> >
> >
> > --
> > Spark Shen
> > China Software Development Lab, IBM
> >
>



-- 
Sean Qiu
China Software Development Lab, IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message