javacommons/utils/tsrc/rtsupport/javasrc/com/nokia/mj/impl/rt/test/TestPermission.java
changeset 80 d6dafc5d983f
parent 78 71ad690e91f5
child 87 1627c337e51e
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 package com.nokia.mj.impl.rt.test;
       
    20 
       
    21 import java.security.Permission;
       
    22 
       
    23 public class TestPermission extends Permission
       
    24 {
       
    25 
       
    26     public TestPermission(String permissionName)
       
    27     {
       
    28         super("TestPermission");
       
    29         System.out.println("TestPermission.TestPermission()");
       
    30     }
       
    31 
       
    32     public boolean equals(Object obj)
       
    33     {
       
    34         System.out.println("TestPermission.equals");
       
    35         return false;
       
    36     }
       
    37 
       
    38     public int hashCode()
       
    39     {
       
    40         System.out.println("TestPermission.hashCode");
       
    41         return 0;
       
    42     }
       
    43 
       
    44     public String getActions()
       
    45     {
       
    46         System.out.println("TestPermission.getActions");
       
    47         return "TestPermission Actions";
       
    48     }
       
    49 
       
    50     public boolean implies(Permission permission)
       
    51     {
       
    52         System.out.println("TestPermission.implies");
       
    53         return true;
       
    54     }
       
    55 }