aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr154427/CallTest.java
blob: 8c1ea5036abe3ac01203fdae8329e5d9d6907776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
public class CallTest {


 public static void main(String[]argv) {
   new CallTest().testMayPerform();
   new CallTest().testMayPerform2();
   new CallTest().testMayPerform3();
 }

      private AuthorizationAdmin admin;
      private Authorization auth;

      public void testMayPerform() {
        admin = new AuthorizationImpl();
        boolean bool = admin.mayPerform("peter", "query");
        if (!bool) throw new RuntimeException();
      }

      public void testMayPerform2() {
            admin = new AuthorizationImpl();

            boolean bool = admin.mayPerform2("peter2", "query2");
   if (!bool) throw new RuntimeException();

      }

        public void testMayPerform3() {
                auth = new AuthorizationImpl();

                boolean bool = auth.mayPerform("peter2", "query2");

   if (!bool) throw new RuntimeException();
        }

}