You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Tencé, Vincent" <vt...@optimuminformatique.com> on 2005/02/01 17:10:37 UTC
RE: [asn.1] sitedocs update for 0.3 dev cycle - new refactoring p
age is up
Haha. Thanks for the pointer
> -----Original Message-----
> From: Alex Karasulu [mailto:aok123@bellsouth.net]
> Sent: February 1, 2005 10:36 AM
> To: Apache Directory Developers List
> Subject: Re: [asn.1] sitedocs update for 0.3 dev cycle - new
> refactoring
> p age is up
>
>
> Tencé, Vincent wrote:
>
> >I'm starting to think I'm blind. Sorry again, but I can't
> find those test
> >cases. I can compile ldap/trunk/apache-provider fine without
> any dependency
> >on snacc4j and ldap-snacc-provider in IDEA. Where exactly
> should I look?
> >
> >
> >
> No problem this is not easy to navigate.
>
> Take a look at this method here ...
>
> /**
> * Decodes the accumulated bytes emitted from the encoder
> being tested using
> * the Snacc4J decoder.
> *
> * @return the decoded LDAP Message envelope
> */
> protected Message decode()
> {
> Properties env = new Properties();
> env.setProperty( Provider.BERLIB_PROVIDER,
> "org.apache.ldap.common.berlib.snacc.SnaccProvider" );
> MessageDecoder decoder = new MessageDecoder( env );
> ByteArrayInputStream in = new ByteArrayInputStream(
> accumulator.array(),
> 0, accumulator.position() );
> return ( Message ) decoder.decode( null, in );
> }
>
> It's in the AbstractEncoderTestCase class:
>
> http://svn.apache.org/repos/asf/incubator/directory/ldap/trunk
> /apache-provider/src/test/org/apache/ldap/common/berlib/asn1/e
> ncoder/AbstractEncoderTestCase.java
>
> It's used to decode messages encoded by the ApacheProvider
> using the SnaccProvider.
> I think there may be a few examples like this localized test
> method in this class.
> That hopefully makes things a little easier.
>
> Cheers,
> Alex
>
> >>-----Original Message-----
> >>From: Alex Karasulu [mailto:aok123@bellsouth.net]
> >>Sent: January 29, 2005 11:13 PM
> >>To: Apache Directory Developers List
> >>Subject: Re: [asn.1] sitedocs update for 0.3 dev cycle - new
> >>refactoring
> >>page is up
> >>
> >>
> >>Vincent Tence wrote:
> >>
> >>
> >>
> >>>Any ideas on this?
> >>>
> >>>Thanks,
> >>>-- Vincent
> >>>
> >>>
> >>>Vincent Tence wrote:
> >>>
> >>>
> >>>
> >>>>I need your lights guys here. I'm not finding anywhere in
> the asn1
> >>>>module tests a dependency on snac4j. Could somebody point
> >>>>
> >>>>
> >>me to the
> >>
> >>
> >>>>rebel test cases?
> >>>>
> >>>>
> >>Ooops sorry I may have missed this email. Please take a look at
> >>ldap/trunk/apache-provider. This replaces the snacc provider
> >>but uses
> >>Snacc4J to test itself.
> >>
> >>Sorry about not getting to this earlier.
> >>Alex
> >>
> >>
> >>
> >
> >
> >
>