1   /*
2    * Jour - java profiler and monitoring library
3    *
4    * Copyright (C) 2004 Jour team
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Library General Public
8    * License as published by the Free Software Foundation; either
9    * version 2 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Library General Public License for more details.
15   *
16   * You should have received a copy of the GNU Library General Public
17   * License along with this library; if not, write to the
18   * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   * Boston, MA  02111-1307, USA.
20   */
21  package uut;
22  
23  import java.util.List;
24  
25  /*
26   * Created on Dec 2, 2004
27   *
28   * Contributing Author(s):
29   *
30   *   Misha Lifschitz <mishalifschitz at users.sourceforge.net> (Inital implementation)
31   *   Vlad Skarzhevskyy <vlads at users.sourceforge.net> (Inital implementation)
32   */
33  /***
34   * TODO Add docs
35   * @author michaellif
36   * @version $Revision: 1.3 $ ($Author: vlads $)
37   */
38  public class TestCase01 implements PointcutCaseInterface {
39  
40      public static void main(String[] args) {
41          
42  		System.out.println("main()");
43          
44  		new net.sf.jour.rt.agent.MapedEventID(0);
45  		
46          TestCase01 main = new TestCase01();
47          
48          main.method1();
49          main.method2();
50  		main.method1(30);
51  		method2(null, null);
52  		
53          while (true) {
54          	try {
55                  Thread.sleep(200);
56              } catch (InterruptedException e) {
57                  break;
58              }
59  			main.method1();
60  			main.method2();
61  			main.method1(10);
62  			method2(null, null);
63          }
64      }
65  
66      public void method1() {
67          System.out.println("method1()");
68      }
69  	
70  	public void method1(int bob) {
71  		System.out.println("method1(int)");
72  		getFooBar(bob);
73  	}
74  	
75      public int method2() {
76          System.out.println("method2()");
77          for (int i = 1; i <= 100; i ++) {
78          	Math.sin(10);
79          }
80          return 22;
81      }
82      
83  	public static java.util.Vector method2(java.io.File f, String s) {
84  		return null;
85  	}
86  	
87      public String getFooBar(int bar) {
88          System.out.println("getFooBar(int)");
89          return null;
90      }
91      
92      public List getBar() {
93          System.out.println("getBar()");
94          return null;        
95      }
96  
97  }