Just incidentally, why? Your unit tests should be so fast that you don't care. Or are you using junit to write larger-scale tests? S. ... Steve Freeman ...
20829
miro
miroconnect@...
Sep 2, 2008 7:24 am
We dont have real test cases , most of them would fail written by several developers in offshore dont want to mess with them , in any case one fails it wont...
20830
Jan Kroeze
thejcwk
Sep 2, 2008 8:04 am
Hi all! I'm a bit of a newb to the whole TDD thing, but I understand that unit tests are supposed to be blazingly fast and not access the hard drive, network, ...
20831
Cédric Beust
cbeust
Sep 2, 2008 12:40 pm
This has nothing to do with speed, it's just convenient to be able to run just the one test method you are currently developing or debugging. For example, the...
20832
adrian.kuhn
Sep 2, 2008 2:45 pm
Select the method node in the outline and choose "Run As > JUnit Test", this should execute that test method only. cheers, AA ... ...
20833
Dennis Lloyd Jr
dennis_lloyd_jr
Sep 2, 2008 11:29 pm
Hi Jan, I won't claim to be the official position of the JUnit community, but I will offer my thoughts. It is okay to use JUnit for other kinds of testing,...
20834
miro
miroconnect@...
Sep 2, 2008 11:29 pm
Here is my test case package com.uprr.app.csr.manager; import com.uprr.app.csr.dao.hibernate.impl.BaseDAOTestCase; public class StorageRequestManagerTest...
20835
sudarshenek
Sep 2, 2008 11:30 pm
Hi, In my maven pom.xml I want to register a JUnit 4.X listener to maven- surefire-plugin to notify that my all jUnit 4.X testcases completed their executions....
20836
Yang Gu
hyysguyang
Sep 3, 2008 3:58 am
Hi, The first problem may be your java envirenment not config correctly,please check again or google "java -classpath". The code recorded with Selenium IDE...
20837
Jan Kroeze
thejcwk
Sep 3, 2008 9:32 am
Hi! Often, a few thoughts are worth much more than an official positions. That's a good point about keeping the two tests in different folders. I suppose I'll...
20838
miro
miroconnect@...
Sep 3, 2008 11:32 am
my method might return a value or might not. So I am wondering what should be final line in my test case like assert? here is my code public void...
20839
Jan Cumps
j_cumps
Sep 3, 2008 2:21 pm
Your test cases should not accept parameters. Use public void testgetStatus() instead of public void testgetStatus( Long storageRequestId) Regards, Jan  ...
20840
Bill Woodward
bill_cchkk
Sep 3, 2008 4:22 pm
... I assume that your saying that you're testing a method that may return 'null' or may return a list. If you're not sure which will come back when you run...
20841
danilsuits
Sep 3, 2008 4:37 pm
"Jan Kroeze" wrote: "Is there a better framework, or is it common practice to use JUnit for these tests as well?" Based on my experience, best practice is to...
20842
kentb
kentlbeck
Sep 3, 2008 5:27 pm
Jan, You can use JUnit for longer-running tests, but there are some assumptions JUnit embodies that will cause some problems. JUnit assumes tests are ...
20843
Jan Kroeze
thejcwk
Sep 4, 2008 8:15 am
I imagined I would get quite a few responses with this viewpoint. This is what I'm currently doing and it seems to work well. Were these expierences relatively...
20844
Jan Kroeze
thejcwk
Sep 4, 2008 8:18 am
Hi! I think this summarises quite neatly what a couple of people have said, namely that switching to a dedicated framework from JUnit is only neccessary if...
20845
yosefshariat
Sep 4, 2008 6:14 pm
Hello I write a unit test where must be Exception. Also I need to run this unit test for few status and don't want create again my unit test for each status ,...
20846
mraccola
Sep 4, 2008 6:14 pm
I am looking for some pointers on the best JUnit extensions and/or patterns to follow in developing concurrency tests. Basically, for key classes I want to...
20847
lancezant
Sep 4, 2008 11:06 pm
Hi Jan, I agree, and as you touch on the idea of acceptance tests, you come close to the one point I'd add. Besides running time and number of failures, the...
20848
Per Jacobsson
perjacobsson@...
Sep 4, 2008 11:27 pm
Interesting idea. It sounds like something that would be very hard to do from a unit testing perspective. One tool I've used is multithreadedtc. It doesn't...
20849
Cédric Beust
cbeust
Sep 4, 2008 11:33 pm
... It is very useful to put some concurrency pressure on your code. This doesn't guarantee that it's threadsafe but it gives you a reasonable idea. FYI, here...
20850
Marvin Toll
y153446
Sep 8, 2008 8:17 am
TestUtil v. 2.4 has been released and includes support (thank you Björn Ekryd) for Enums. http://gtcgroup.com/util/index.html TestUtil is a Java open source...
20851
Nina Niskanen
mokso1
Sep 8, 2008 8:17 am
Hi all, Does anyone run performance testing along with integration tests via junit? What tools are you using? Nina Niskanen -- I reject your reality and...
20852
Jan Kroeze
thejcwk
Sep 8, 2008 8:22 am
Have you looked at jmeter? I heard someone mention it on the project I'm currently working on. 2008/9/8 Nina Niskanen <nina.niskanen@...> ... -- Jan...
20853
Jan Kroeze
thejcwk
Sep 8, 2008 8:28 am
Hi! Very good point about acceptance testing and system boundaries. I hadn't thought of this and people often forget to mention it. Of course, this has a great...
20854
Bradley, Todd
todd404
Sep 8, 2008 6:43 pm
JMeter is cool for some things like testing performance under load of messaging APIs (like, say, HTML or SOAP). But if you're talking about performance of a...
20855
kentb
kentlbeck
Sep 8, 2008 11:53 pm
All, David and I are working on ways to shorten the validation phase of the inner programming loop (feature -> test -> code -> validate). One of the ideas is ...
20856
Marvin Toll
y153446
Sep 9, 2008 12:08 pm
Per feedback, the description has been enhanced: For practitioners of Test-Driven Development, TestUtil recursively interrogates the code base and reflectively...
20857
pmcevoy12
Sep 9, 2008 12:08 pm
Hi, Are there any changes between 4.4 and 4.5 in regards to Mock objects? I am updating at work and I am seeing some tests that use mock objects pass in 4.4...