Re: [testing] code for exotic configurations

2006-01-31 Thread Mikhail Loenko
Hello We deep into discussion of what the test types are, which is useful and interesting but we a little bit went away from the original problem statement. I'd like to try to put the original problem in different words because it seems to be some misunderstanding here. So, we have some code,

Re: [testing] code for exotic configurations

2006-01-30 Thread Mikhail Loenko
On 1/30/06, Anton Avtamonov [EMAIL PROTECTED] wrote: On 1/29/06, Mikhail Loenko [EMAIL PROTECTED] wrote: P.S. There are also 'integration' tests that verify how different 'units' work together. I think the areas of various tests intersect and it would be good to define them on this

Re: [testing] code for exotic configurations

2006-01-30 Thread Stepan Mishura
I'd like to add two my kopeks :-) Example, KerberosKey class depends on DES-based encryption to generate a DES key from a user's password. A test may looks like the following: // Test data from RFC 3961 (http://www.ietf.org/rfc/rfc3961.txt) public void testGetEncoded() { byte[] expected =

Re: [testing] code for exotic configurations

2006-01-28 Thread Mikhail Loenko
On 1/27/06, Anton Avtamonov [EMAIL PROTECTED] wrote: Sorry for being away during the major part of your discussion. Hope I'm still not too late. As I can see currently we have only one 'exotic' situation - some tests which are based on providers and use so many provider's fucntionality that

Re: [testing] code for exotic configurations

2006-01-28 Thread Mikhail Loenko
@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider

Re: [testing] code for exotic configurations

2006-01-28 Thread George Harley
Hi Mikhail, Comments inlined below. Best regards, George IBM UK Mikhail Loenko wrote: Hi Anton, On 1/28/06, Mikhail Loenko [EMAIL PROTECTED] wrote: On 1/27/06, Anton Avtamonov [EMAIL PROTECTED] wrote: Sorry for being away during the major part of your discussion. Hope I'm still

Re: [testing] code for exotic configurations

2006-01-28 Thread Mikhail Loenko
P.S. There are also 'integration' tests that verify how different 'units' work together. I think the areas of various tests intersect and it would be good to define them on this early stage Thanks, Mikhail On 1/29/06, Mikhail Loenko [EMAIL PROTECTED] wrote: Hi George, another example:

Re: [testing] code for exotic configurations

2006-01-27 Thread Tim Ellison
Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider as well as how my other classes work with real implementations of crypto Engines. Thanks,

Re: [testing] code for exotic configurations

2006-01-27 Thread George Harley1
George C. Harley Tim Ellison [EMAIL PROTECTED] 27/01/2006 08:53 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could

Re: [testing] code for exotic configurations

2006-01-27 Thread Mikhail Loenko
PROTECTED] 27/01/2006 08:53 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I

Re: [testing] code for exotic configurations

2006-01-27 Thread George Harley
@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider as well

Re: [testing] code for exotic configurations

2006-01-27 Thread George Harley
[EMAIL PROTECTED] 27/01/2006 08:53 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I

Re: [testing] code for exotic configurations

2006-01-27 Thread Mikhail Loenko
@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from

Re: [testing] code for exotic configurations

2006-01-27 Thread Geir Magnusson Jr
@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider as well as how my other

Re: [testing] code for exotic configurations

2006-01-27 Thread Geir Magnusson Jr
Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider as well as how my other classes work

Re: [testing] code for exotic configurations

2006-01-27 Thread Geir Magnusson Jr
George C. Harley Tim Ellison [EMAIL PROTECTED] 27/01/2006 08:53 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org cc Subject Re: [testing] code for exotic configurations Anton Avtamonov wrote: Note that I could create my own provider

Re: [testing] code for exotic configurations

2006-01-27 Thread Anton Avtamonov
Sorry for being away during the major part of your discussion. Hope I'm still not too late. As I can see currently we have only one 'exotic' situation - some tests which are based on providers and use so many provider's fucntionality that cannot be replaced with mock objects in a reasonable time.

Re: [testing] code for exotic configurations

2006-01-27 Thread Anton Avtamonov
This ties us hard to JUnit. That's my only worry. I'd like to also keep in consideration how ant, maven, etc can drive this aspect of testing.. Definitely. However 'system-related' scenarious are usually quite complicated and can hardly perform the required environment settings (tools

Re: [testing] code for exotic configurations

2006-01-26 Thread Geir Magnusson Jr
one solution is to simply group the exotic tests separately from the main tests, so they can be run optionally when you are in that exotic configuration. You can do this in several ways, including a naming convention, or another parallel code tree of the tests... I like the latter, as it

Re: [testing] code for exotic configurations

2006-01-26 Thread Mikhail Loenko
configuration ? Thanks in advance, George George C. Harley Mikhail Loenko [EMAIL PROTECTED] 26/01/2006 12:11 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org, [EMAIL PROTECTED] cc Subject Re: [testing] code

Re: [testing] code for exotic configurations

2006-01-26 Thread Mikhail Loenko
, George George C. Harley Mikhail Loenko [EMAIL PROTECTED] 26/01/2006 13:13 Please respond to harmony-dev@incubator.apache.org To harmony-dev@incubator.apache.org cc Subject Re: [testing] code for exotic configurations We have tests

Re: [testing] code for exotic configurations

2006-01-26 Thread Anton Avtamonov
Note that I could create my own provider and test with it, but what I would really want is to test how my EncryptedPrivateKeyInfo works with AlgorithmParameters from real provider as well as how my other classes work with real implementations of crypto Engines. Thanks, Mikhail. Hi