banshee858 | 1 May 2004 01:14
Picon
Favicon

NUnitASP authentication issue

I have turned off the annyomous access on my ASP.Net web application 
and not set access using NT groups.  That works great, except now 
none of my NUnitASP tests work - everything fails with access denied 
errors.  I have read this article 
(http://home.iprimus.com.au/lachlanb/nunitasp/nunit.html) and 
followed the directions in the "Security" section, but was running 
into some difficulties.

I was wondering if anyone had experience passing Network credentials 
in NUnitASP?  I hoped someone could point out the errors in my code.

Uri myURI = new Uri
("http://mydomainname//so_user_test:SupplyOrder518 <at> mydomainname.com")
;

Browser.Credentials = 
CredentialCache.DefaultCredentials.GetCredential(myURI, "Windows");
Browser.GetPage(DefaultPage);            

Assertion.AssertEquals("no redirect.", RedirectWithAccess, 
Browser.CurrentUrl.ToString());

Carlton

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->
(Continue reading)

gowtham_J | 1 May 2004 02:11
Picon
Favicon

Re: Help in using Mock Objects for JavaMail implementaion

Thank you for the feedback.  Appreciate it.  

> I am getting a little bogged down in work on my book, but I'll try 
to 
> write more about this later, unless of course, this was good 
enough. :)
I would very much like to hear your musing on this issue when U have 
time to get around to this.

Thank you.

Gowtham.

--- In testdrivendevelopment <at> yahoogroups.com, "J. B. Rainsberger" 
<jbrains <at> r...> wrote:
> gowtham_J wrote:
> 
> > However I see that the implementation of sendMessage() will end 
up 
> > using the static Transport.send().
> > 
> > Questions:
> > - Is there a simple way to get around the Transport.send()?
> > - I am on the right track?
> 
> I haven't read the whole thing, but here's my immediate advice: 
when 
> faced with something like Transport.send(), what I often do is 
create a 
> wrapper class that changes send() from a class-level method to an 
(Continue reading)

Michael Feathers | 1 May 2004 02:18
Picon

Re: Help in using Mock Objects for JavaMail implementaion


g> I am pretty new to the field of Test Driven Development(TDD).  I am 
g> in the process of using TDD to implement the following interface to 
g> send out information using JavaMail API.

I don't know if this helps, but I wrote a little mailing list server
test-first a few years ago.  I didn't mock out the mail service.  I
used it and overrode a method on one of the classes I was developing
so that when it read mail from my account it would look for something
special on the subject line before forwarding.  When I was confident
that it worked, I deployed it.

The code is up on our website here.

http://www.objectmentor.com/resources/downloads/index

Look for "Zess"

Michael Feathers
www.objectmentor.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links
(Continue reading)

steven.hale | 3 May 2004 10:09

Re: Help in using Mock Objects for JavaMail implementaion

Not a mock - but I've had success with dumbster
(http://sourceforge.net/projects/dumbster) for testing SMTP mailing.

Steven Hale

Powered by Rockliffe MailSite

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/testdrivendevelopment/

<*> To unsubscribe from this group, send an email to:
     testdrivendevelopment-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/

Tom Cox | 3 May 2004 15:22
Picon
Favicon

Re: Help in using Mock Objects for JavaMail implementaion - Implement Transport

I wrote a mock implementation of the Transport interface and made it
available to the Java system by putting it in java mail properties
files as described in this excerpt from my javadoc:

<excerpt>
This test class depends on a javamail.providers file and a
javamail.address.map file
being in the C:\jdk1.3.1_06\jre\lib directory.  The providers file
should look something like:
protocol=smtp; type=transport; class=com.mypackage.TestTransport;

Of course the class file in the above should exist as indicated.
The address.map file should look something like:
rfc822=smtp
</excerpt>

My actual Transport impl is not particularly fancy and belongs to my
employer now I guess, but it was very easy to implement.  It just
captures the parameters in the method calls in ArrayLists and makes
those parameters available for inspection by test methods through
static calls.

I couldn't make EasyMock work for this, since the "Factories" for java
mail aren't exposed (either a security consideration, or an oversight
I guess) and the classes that actually use java mail were not
available to me for wrapping and mocking.

--- In testdrivendevelopment <at> yahoogroups.com, "gowtham_J"
<gowtham_j <at> y...> wrote:
> However I see that the implementation of sendMessage() will end up 
(Continue reading)

sonaliDev | 3 May 2004 18:55
Picon
Favicon

Calling each test using command line and NUNit

Hi
I am writing an automated testing script for nightly build to call
all my NUnit tests from command line. The relevant NUNit command line 
params are - 
nunit-console.exe /fixture
which allows me to call all tests in a fixture, but there is no way 
to call each test case in the fixture.
I need the ability to change the sequence in which the tests are run 
from command line, and with /fixture I have the ability to change the 
sequence in which the fixtures are run, but not individual tests.

Does NUNit have this ability?

thanks for your responses.
Sonali
PS: I would appreciate if you could point me to the correct list if 
this is not appropriate for this question

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/testdrivendevelopment/
(Continue reading)

w6rabbit | 3 May 2004 16:56
Picon

other groups or mailing lists

I've really enjoyed this group and
learned a lot from it.

What other groups or mailing lists 
do you recommend?

Thanks,
Brad.

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/testdrivendevelopment/

<*> To unsubscribe from this group, send an email to:
     testdrivendevelopment-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/

Steven Smith | 4 May 2004 02:16
Favicon
Gravatar

RE: other groups or mailing lists

There are a bunch at http://AspAdvice.com, including many on architecture,
open source tools, etc.

I know there are also some Yahoo lists for XP and Agile Articles but I don't
have the URLs handy (I'm sure someone else will provide them).

Steve 

-----Original Message-----
From: w6rabbit [mailto:bwhite <at> inebraska.com] 
Sent: Monday, May 03, 2004 10:57 AM
To: testdrivendevelopment <at> yahoogroups.com
Subject: [TDD] other groups or mailing lists

I've really enjoyed this group and
learned a lot from it.

What other groups or mailing lists 
do you recommend?

Thanks,
Brad.

 
Yahoo! Groups Links

---
[This E-mail scanned for viruses by Declude Virus]

---
(Continue reading)

Sven Gorts | 4 May 2004 09:03
Picon
Favicon

RE: other groups or mailing lists

--- Steven Smith <ssmith <at> aspalliance.com> wrote:
> 
> I know there are also some Yahoo lists for XP and
> Agile Articles but I don't
> have the URLs handy (I'm sure someone else will
> provide them).
> 

For the Agile Articles group the url is :

  <http://groups.yahoo.com/group/agilearticles/>

The Agile Alliance has a similar group : 

  <http://groups.yahoo.com/group/agile-articles/>

Kind Regards,
Sven

	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
(Continue reading)

Keith Young | 4 May 2004 14:39
Picon
Favicon

Re: other groups or mailing lists

Hi Brad,

Here's a refactoring group on Yahoo:
http://groups.yahoo.com/group/refactoring/

Cheers,
Keith.

>>> bwhite <at> inebraska.com 05/03/04 09:56am >>>
I've really enjoyed this group and
learned a lot from it.

What other groups or mailing lists 
do you recommend?

Thanks,
Brad.

------------------------ Yahoo! Groups Sponsor

 
Yahoo! Groups Links

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/testdrivendevelopment/

<*> To unsubscribe from this group, send an email to:
(Continue reading)


Gmane