Tag Archives: J2EE

Fitnesse – Slim : Could not invoke constructor for : Java Solution

I was trying to install fitnesse and get some basic fixtures(Decision Table) going. I was faced with  ”Could not invoke constructor for”.  I tried a couple of solutions like,

  1. Setting the !Path “Location of the .class file”.  I got the location of the .class file wrong. I pointed it to actual directory where .class file was, even though it was in a Java Package.

So the solution was,

!Path “Point to bin directory (Simple Java Project ) or target directory (Maven Project)”

and then create a Import table which specifies the package of the Fixture class. For example:

|import |
|com.om.example.dvr.fixtures|

This will make sure that Fitnesse can find your fixtures. I’m currently using this tutorial, which is turning out to be a wonderful Fitnesse-Slim resource.

I’m going to show my fixture properties. Might be helpful , If you are facing this error.

 

!contents -R2 -g -p -f -h
!define TEST_SYSTEM {slim}

!path C:\Users\ddd\JavaWorkspace\fitnesse-tutorials\my-project\bin
|import |
|com.om.example.dvr.fixtures|

!define COLLAPSE_SETUP {true}
!define COLLAPSE_TEARDOWN {true}

Spring Security Project

I’m at the midst of developing a repossessed website at work. Management came up with a requirement of OpenID and Custom Authentication. So the user will have the option to choose, the method thats comfortable for him. Since our platform is based on Spring, Our default choice was to use spring security. I was amazed by spring security features. it supports OpenId, LDAP and you name any authentication mechanism, it supports it.

So I thought of trying it at home, so that I can learn the stuff that we don’t implement at office. So my next post will be about implementing a basic spring security project.