Hi David, thanks for your answer. I have opened the question in the Mockito mailing list, as You suggested. Gabriel ... [Non-text portions of this message have...
22364
Gabriel Forro
gabriel.forro
Feb 5, 2010 2:01 pm
Hi Alistair, thanks for the information! I will use that. The inaccessibility of JUnit 4.8 and 4.8.1 in public Maven repo is not a problem of course - I will ...
22365
Loritsch, Berin C.
bloritsch
Feb 5, 2010 8:27 pm
Thanks everyone for helping me work through the testing challenge I wanted to address. I've written a rudimentary ClassCollector that lets me specify a base...
22366
Edson Tirelli
edsontirelli
Feb 5, 2010 9:17 pm
Hi all, Facing a problem a could not find an answer for yet. We use JUnit as the testing framework for Drools ( http://www.jboss.org/drools/). It happens,...
22367
krosenvold
Feb 5, 2010 9:44 pm
Is NodeTest actually a test class ? I think you may be victim of a hotly debated issue in surefire, where surefire by default assumes every class ending with...
22368
Edson Tirelli
edsontirelli
Feb 5, 2010 10:52 pm
Hmmm, it seems you are right actually. I will do some research on how surefire is handling that. Thanks, Edson 2010/2/5 krosenvold <kristian@...> ......
22369
krosenvold
Feb 6, 2010 7:19 am
Is NodeTest actually a test class ? I think you may be victim of a hotly debated issue in surefire, where surefire by default assumes every class ending with...
22370
krosenvold
Feb 6, 2010 7:25 am
... The issue is http://jira.codehaus.org/browse/SUREFIRE-482 , so just go voting ;) Can someone confirm that Mark Hobsons comment (no 2) on this issue is the...
22371
Edson Tirelli
edsontirelli
Feb 6, 2010 11:39 pm
The problem was that indeed. In my case, since it is all internal stuff, I just renamed a few classes and it is working now. But I voted on that ticket anyway....
22372
Peter Niederwieser
pniederw
Feb 6, 2010 11:40 pm
See this thread: http://old.nabble.com/Upgrading-from-3.8.1-to-4.x--to27153980.html#a27169769 Cheers, Peter ... -- View this message in context:...
22373
Panchanana MRLN
panchanana@...
Feb 6, 2010 11:40 pm
Please unsubscribe for this group. Regards, Panchanana [Non-text portions of this message have been removed]...
22374
Simon Chappell
spchappell
Feb 7, 2010 12:01 am
The way recommended by Yahoo! Groups, where this mailing list is hosted, is to send an email to the special address junit-unsubscribe@... that...
22375
Simon Chappell
spchappell
Feb 7, 2010 12:05 am
It's time for a little reminder of some of the finer points of JUnit mailing list etiquette. This will be posted now and then; not often enough to be spam, but...
22376
jens_schauder
Feb 7, 2010 12:25 am
I don't know if they work well with theories, but I'd say you can handle this kind of stuff with rules pretty well. ...
22377
David Saff
dsaff
Feb 8, 2010 2:48 am
Berin, I do think that we should eventually have a way to operate at least optionally in the way you describe. Have you logged a feature request yet? Davi On...
22378
David Saff
dsaff
Feb 8, 2010 2:49 am
http://github.com/KentBeck/junit/issues...
22379
Loritsch, Berin C.
bloritsch
Feb 8, 2010 2:25 pm
I haven't logged the feature request, mainly because I might not be using the right tool for the job. What I would like to see is what I described. With JUnit...
22380
David Saff
dsaff
Feb 8, 2010 4:14 pm
Berin, I wouldn't use Rules, either. One failure per method is currently baked into the architecture of the Theories runner--I'd welcome a feature request for...
22381
Loritsch, Berin C.
bloritsch
Feb 8, 2010 5:42 pm
I have JUnit 4.7 which is the most recent available from Maven. The parameters that caused the failure were not easily detectable from the stack trace. I've...
22382
David Saff
dsaff
Feb 8, 2010 6:03 pm
Berin, Do you have a stack trace you could share? That would be really helpful. David On Mon, Feb 8, 2010 at 12:35 PM, Loritsch, Berin C....
22383
Loritsch, Berin C.
bloritsch
Feb 8, 2010 7:52 pm
It'll take some time, but I can get it for you (I'm snowed in and the environment is on my work computer). ... From: junit@yahoogroups.com on behalf of David...
22384
Berin
bloritsch
Feb 8, 2010 9:14 pm
I dug out my work laptop. Attached is the stacktrace provided by Eclipse: org.junit.experimental.theories.internal.ParameterizedAssertionError:...
22385
David Saff
dsaff
Feb 9, 2010 2:12 pm
Up at the top is the bit that's supposed to be helpful: it's the 16th element of the collectEntityAttributes array that's failing. I'll bet that would be much...
22386
Loritsch, Berin C.
bloritsch
Feb 9, 2010 4:25 pm
I wrote up my experience on using Theories specifically to test interface contracts. This is a more elegant solution to the "Integration Tests are a Scam"...
22387
Berin
bloritsch
Feb 9, 2010 6:21 pm
Absolutely. It is particularly important since the array of values is determined programatically. As I add new instances of entities that have to be tested,...
22388
Berin
bloritsch
Feb 9, 2010 10:29 pm
I've seen in a few places that if an assumption fails, the test automatically passes. I then ran into the test case that confirms that action. Coming from...
22389
Charlie Poole
cpoole98370
Feb 11, 2010 7:28 am
It seems to me that the behavior you are asking for is appropriate if an assumption fails in a normal test as opposed to a theory. Charlie...
22390
Berin
bloritsch
Feb 11, 2010 2:23 pm
It does make me curious to know what the reasoning was for automatically passing a theory if an assumption fails. Perhaps if I knew the other side of the...
22391
Pigneri, Rocco
rpigneri@...
Feb 11, 2010 6:37 pm
Charlie, I think it is reasonable to ask that a test with an assumption fail (or at least be marked ignored) if *all* the test data fails the assumption. A...
22392
Barry Kaplan
memelet
Feb 11, 2010 6:58 pm
Running the following test class MongoUserDetailsManagerTest { @Rule val mongo = new MongoResource("test_insight") ... } Results in java.lang.Exception: Field...