01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wicket.threadtest;
18:
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: import org.apache.commons.logging.Log;
23: import org.apache.commons.logging.LogFactory;
24: import org.apache.wicket.threadtest.apps.app1.ResourceTestPage;
25: import org.apache.wicket.threadtest.tester.SimpleGetCommand;
26: import org.apache.wicket.threadtest.tester.Tester;
27:
28: /**
29: * @author almaw
30: */
31: public class App1Test3 {
32:
33: private static final Log log = LogFactory.getLog(App1Test3.class);
34:
35: /**
36: * @param args
37: * @throws Exception
38: */
39: public static void main(String[] args) throws Exception {
40:
41: List<String> gets = new ArrayList<String>();
42: gets
43: .add("/app1?wicket:bookmarkablePage=one:org.apache.wicket.threadtest.apps.app1.ResourceTestPage");
44: for (int i = 0; i < ResourceTestPage.IMAGES_PER_PAGE; i++) {
45: gets
46: .add("/app1?wicket:interface=one:${iteration}:listView:"
47: + i + ":image::IResourceListener");
48: }
49:
50: SimpleGetCommand getCmd = new SimpleGetCommand(gets, 5);
51:
52: // getCmd.setPrintResponse(true);
53: Tester tester = new Tester(getCmd, 100, false);
54: tester.run();
55: }
56: }
|