/*
 * JOnAS: Java(TM) Open Application Server
 * Copyright (C) 1999 Bull S.A.
 * Contact: jonas-team@objectweb.org
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id$
 * --------------------------------------------------------------------------
 */

package org.objectweb.jonas.stests.manac;

public abstract class A_simple extends A_manac {

    protected static ManagerHome home = null;
    protected static Manager manager = null;

    // default values
    int accounts = 20;          // nb of accessed accounts
    int delay = 3;              // seconds
    int loops = 1;              // nb of loops
    int amount = -10;           // withdraw value (initial value is 1000)
    int threads = 1;            // nb of concurrent threads
    int checklevel = 2;         // check accounts after every test
    int timeout = 30;           // transaction timeout

    public A_simple(String name) {
        super(name);
    }

    public void testBasic() throws Exception {
        manac(accounts, delay, loops, amount, threads, checklevel, timeout);
    }

    public void testBasicLong() throws Exception {
        loops = 100;
        manac(accounts, delay, loops, amount, threads, checklevel, timeout);
    }

    public void testT2() throws Exception {
        threads = 2;
        loops = 10;
        manac(accounts, delay, loops, amount, threads, checklevel, timeout);
    }

    public void testT4() throws Exception {
        threads = 4;
        loops = 10;
        manac(accounts, delay, loops, amount, threads, checklevel, timeout);
    }

}
