commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morgan Delagrange" <mdela...@yahoo.com>
Subject Re: cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestMap.java TestSequencedHashMap.java
Date Thu, 21 Feb 2002 20:31:29 GMT

> > > btw, my test cases use methods rather than a marker interface to
determine
> > > whether certain operations are allowed.
> > >
> > > For example:
> > >
> > >   public boolean useNullKeys() {
> > >     return true;
> > >   }
> > >
> > > I think this works better because if you have a class that supports
all
> > > operations, and its subclassed by a class that does not, you can still
> > > override the testing behavior.  With the marker interfaces, once
you've
> > > implemented the interface, all test subclasses also implement that
marker
> > > interface.
> > >
> >
> > You're right, that is better.  Feel free to tear it up.
>
> was planning on it.  :)

Could you implement them as abstract methods in TestMap?  Might as well
insure that each Map is aware of which operations are supported and which
are not.

- Morgan




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message