private void setArgumentsForTestUsing(Vector employees) { setArguments(new Vector()); Enumeration names = getExpressionParameters().elements(); Enumeration employeeEnum = employees.elements(); while (names.hasMoreElements()) { Employee emp = (Employee) employeeEnum.nextElement(); getArguments().add(emp.getId()); names.nextElement(); } }
public void test() { Vector sessions = new Vector(); try { for (int i = 0; i < stressLevel; i++) { Session session = new Project(getSession().getDatasourceLogin().clone()).createDatabaseSession(); ((DatabaseSession) session).login(); sessions.addElement(session); } getSession().readObject(Address.class); } finally { for (Enumeration sessionEnum = sessions.elements(); sessionEnum.hasMoreElements(); ) { ((DatabaseSession) sessionEnum.nextElement()).logout(); } } getSession().readObject(Address.class); }