Words of Java RSS Feed
Words of Java

Words of Java

High and low about Java and Web programming

 
 
 
 

Archive for Testing

TestNG - is this the sh..

I started out to investigate TestNG to see if it has an advantage over JUnit 4 and first I thought so but along the way (reading about it) I found it to contain just a little to many setup files and configurations (XML). These are things you don’t see when running the combination JUnit 4 [...]

Thistle

Started to look at Thistle today via github. I forked and did the necessary setup at my local computer. I hope I will get some work done soon to contribute to this fine idea by Pål. Otherwise, my main contributions to this project will be putting the pressure on Pål, spreading the word and being [...]

Thistle

Kids, keep an ear or two open for this one…

Alternative to Webtest

Started to test an alternative to webtest in fitnesse today - fitnium. At first sight it seems to have more built in stuff then Webtest but I have to test the stability before I give it my blessing.
Take a look at http://www.magneticreason.com/tools/fitnium/fitniumapi.html

fitnesse and webtest tutorial for developers

At a Java conference at my Company (TM) I signed up for a “fitnesse and webtest” presentation. Well, I’d like to go through the basics of FIT, how you use it in fitnesse, testing GUI/Web with webtest and database connection with dbFit. Wow, how to do this in only 45 minutes. I guess (since I’m [...]

Trying out EJB3Unit

Was going to try EJB3Unit for JUnit support today, but I ran into some problems.
Added the dependency to the projects POM and added the repo http://ejb3unit.sourceforge.net/maven2 to maven settings, but at “mvn eclipse:eclipse” the repo was down at sourceforge… well, let’s try another day.

More reading

Collected two new books today for some selfcentered eduction.
The books are
“Fit For Developing Software” and
“Maven The Definitive Guide” (O’Reilly).
Need to dive deeper into both areas and both books should be good reading and also later good reference and example material.

fitnesse db2 date thingy

Found the solution for the todays date problem, just test for sql date.
So, the final dbfit query in fitnesse is (modified names ofcourse)
!|Query|SELECT count (*) as nr FROM table1 t1 WHERE  treated=Date(Current_Date)|
|nr|
|1|

More fitnesse

Didn’t get time to solve the fitnesse count problem yet but found another interresting one. When using dbfit to check the database after an webtest gui operation I needed to test for todays date. So, I need a defined variable to use like “and date_added=’${today}’”. We have a fixture that gets the date ok but [...]

Easymocking against action servlets

Changed a few dispatcher servlet methods today and had to update quite some test methods as well. But when testing Struts action classes you get quite a few things that has to be mocked, so what are you really testing. At one point I ended up with mocking just about every line of code in [...]

Recent Posts

Custom Search