1 25 26 package org.objectweb.jonas.stests.manac; 27 28 31 public abstract class A_stress extends A_manac { 32 33 int accounts = 20; int delay = 0; int loops = 50; int amount = 1; int threads = 4; int checklevel = 0; int timeout = 10; 42 public A_stress(String name) { 43 super(name); 44 } 45 46 public int getAccounts() { 47 return accounts; 48 } 49 50 public void testStress1() throws Exception { 51 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 52 } 53 54 public void testStress2() throws Exception { 55 int delay = 3; 56 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 57 } 58 59 public void testStress3() throws Exception { 60 int amount = 100; 61 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 62 } 63 64 public void testStress4() throws Exception { 65 int amount = 300; 66 int loops = 20; 67 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 68 } 69 70 public void testStress5() throws Exception { 71 int accounts = 50; 72 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 73 } 74 75 public void testStress6() throws Exception { 76 int accounts = 50; 77 int amount = 100; 78 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 79 } 80 81 public void testStress7() throws Exception { 82 int delay = 3; 83 int accounts = 50; 84 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 85 } 86 87 public void testStress8() throws Exception { 88 int accounts = 1000; 89 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 90 } 91 92 public void testStress9() throws Exception { 93 int accounts = 1000; 94 int amount = 80; 95 int loops = 20; 96 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 97 } 98 99 102 public void testConcurrentCreate() throws Exception { 103 int accounts = 40; 104 int threads = 25; 105 int loops = 8; 106 int amount = 10; 107 int checklevel = 2; 108 manac(accounts, delay, loops, amount, threads, checklevel, timeout); 109 } 110 111 } 112 | Popular Tags |