... Yes, it would generate all 1,000 DataPoints at once right before they're needed, but it wouldn't create a bunch of test objects the way JUnit 3 does. I...
22748
raja_s_patil
Jun 10, 2010 8:19 pm
Thanks David Saff, ... java.lang.Error: Unresolved compilation problems: Unhandled exception type SQLException Unhandled exception type SQLException Unhandled...
22749
David Saff
dsaff
Jun 10, 2010 8:27 pm
What happens if you run this? @Test(expected = java.sql.SQLException.class) public void testGetResult() throws Exception { Boolean result; try { result =...
22750
allamistakeo18@...
Jun 11, 2010 12:59 am
... Would just annotating the existing setUp() method with @Before (and the existing tearDown() method with @After) do the job? What way do you have in mind to...
22751
raja_s_patil
Jun 11, 2010 3:19 am
Thanks to all who tried to help, The problem is solved. Actually test was running under junit3 runner due to this line ... MockObjectTestCase is extending...
22752
David Saff
dsaff
Jun 11, 2010 1:16 pm
... Sure, that would work. ... @Rule MethodRule repeat = new MethodRule() { @Override void apply(Statement base, FrameworkMethod method, Object target) { for...
22753
mickus.mykolas
Jun 12, 2010 6:13 am
Hello, My name is Mykolas Mickus (in english its Michael). I've just graduated from Kaunas University of Technology (in Lithuania) where I have been studying...
22754
raja_s_patil
Jun 12, 2010 6:13 am
Hi, I am new to java and doing my first project. The testcase is as given below, but the snippet where i need help is @Test(expected =...
22755
Steve Freeman
smg_freeman
Jun 12, 2010 8:42 am
There are property matchers in Hamcrest. Is that what you wanted? S. ... Steve Freeman http://www.mockobjects.com ...
22756
Steve Freeman
smg_freeman
Jun 12, 2010 9:14 am
This seems to be an unfortunate combination of the two libraries. In your sql exception test, the first stack trace is from the JUnit expected annotation. The...
22757
raja_s_patil
Jun 12, 2010 10:19 pm
Thanks Steve, ... is it mean, in short that, We have to live with this ? Thanks and regards Raja...
22758
mickus.mykolas
Jun 12, 2010 10:19 pm
Sorry. My bad. I've missed additional matchers library for JUnit. Given the currently available features of Java, I guess less verbose tests are impossible. I...
22759
raja_s_patil
Jun 12, 2010 10:21 pm
Hello, I am new to java and unit testing too. The first project I am working demands acquiring knowledge about junit4, jmock2 and consequently hamcrest. But...
22760
allamistakeo18@...
Jun 12, 2010 10:21 pm
Thanks again for your hints. I have a few problems with your suggestion. First of all, your code is slightly broken (I guess you were typing it off the top of...
22761
Steve Freeman
smg_freeman
Jun 13, 2010 11:15 am
If you're new, I wouldn't start with our book, it's intended for people with some experience. Off the top of my head, I still recommend Dave Astels' book for...
22762
Steve Freeman
smg_freeman
Jun 13, 2010 11:18 am
Like I say, I think you can fix some of this with your IDE. It's very hard to be both expressive and general. For example, should the expected() option allow...
22763
Steve Freeman
smg_freeman
Jun 13, 2010 11:19 am
maybe we could come up with a better syntax, but I've been so badly burned by java generics this year I don't want to go there ever again. In the meantime,...
22764
niranjan_rao@...
niranjan_rao
Jun 13, 2010 12:13 pm
Hi there, I am trying to setup eclipse to launch one particular test suite every time after I compile. I am using eclipse 3.3.2. Is this possible? I have...
22765
İbrahim DEMİR
ibrahimdemire@...
Jun 13, 2010 6:10 pm
Hi; As far as I can remember you can start and ant task after compilation. So maybe you can call your tests within an ant task ant trigger that task after ...
22766
raja_s_patil
Jun 13, 2010 6:10 pm
Thanks Steve, ... Well I have to search our lib for both books otherwise raise a request Fine, question of couple of week if not in lib. Till then this list is...
22767
allamistakeo18@...
Jun 13, 2010 6:16 pm
I've thought twice about your initial suggestion to use Theories and DataPoints. Conceptually, this is the functionality that I am looking for. But I don't...
22768
Michael Hill
uly562000
Jun 13, 2010 6:18 pm
In the project settings, there's one for 'run' where you can choose between 'run the right thing for the file that's open' and 'run the same damned thing every...
22769
raja_s_patil
Jun 14, 2010 2:51 am
Hello, I am new to unit testing and using junit4, jmock2 with STS 2.3.2. I am trying to write a testcase for a concrete class. The skeleton code is as below....
22770
David Saff
dsaff
Jun 14, 2010 1:17 pm
Hi, Raja. Welcome to unit testing! There are some frequent jMock users on this list, and I hope one of them chimes in, but you may also want to look for a...
22771
David Saff
dsaff
Jun 14, 2010 1:19 pm
Niranjan, This has been implemented several times for old versions of Eclipse. I believe that Infinitest is the only currently-maintained implementation. David...
22772
David Saff
dsaff
Jun 14, 2010 1:53 pm
... You could add it as an annotation on the method, and read it in the rule. ... http://github.com/KentBeck/junit/issues#issue/78 is a feature request about...
22773
allamistakeo18@...
Jun 14, 2010 3:55 pm
In the meantime, I have been experimenting with TestNG, and I am sorry to report that it does a much better job than JUnit at solving my problem. Using...
22774
YU Yiqing
tsing1129
Jun 15, 2010 12:49 pm
Hello JUnit users and developers, I sincerely invite you to an online survey: http://www.unipark.de/uc/os/?a= conducted by University of Munich. (It takes...
22775
allamistakeo18@...
Jun 16, 2010 10:41 am
OK... This is really ridiculous, but it turns out there is a super-simple way to efficiently get the functionality I need using JUnit 3.8. It's called...
22776
hdave321321
Jul 1, 2010 2:11 am
My DAO integration tests are taking a long time to run. I am using Spring Test which automatically does a transaction rollback after each test method....