Hi,
I tried to delete the maximum that is not related to the test.
I let in the zip :
the bean : Accounts.java
the mapping file
the dao
the service
the manager that implement the login method
the test that call 50 times the login method of loginmanager.
You need a database and those data :
Code:
DROP TABLE IF EXISTS `accounts`;
CREATE TABLE IF NOT EXISTS `accounts` (
`login` varchar(45) NOT NULL default '',
`password` varchar(45) default NULL,
`lastactive` decimal(20,0) default NULL,
`access_level` int(11) default NULL,
`lastIP` varchar(20) default NULL,
PRIMARY KEY (`login`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `accounts` (`login`, `password`, `lastactive`, `access_level`, `lastIP`) VALUES ('corwin', 'qUqP5cyxm6YcTAhz05Hph5gvu9M=', '1172698101359', 0, '127.0.0.1'),
('toto', 'qUqP5cyxm6YcTAhz05Hph5gvu9M=', '1172691596546', 0, '127.0.0.1');
and you need maven2 to get the dependencies : mvn eclipse:eclipse