javacommons/utils/tsrc/unittestrunner/runner/javasrc/com/nokia/mj/impl/rt/unittestrunner/ApplicationInfoImpl.java
branchRCL_3
changeset 83 26b2b12093af
parent 25 9ac0a0a7da70
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
       
     1 /*
       
     2 * Copyright (c) 2010 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 package com.nokia.mj.impl.rt.unittestrunner;
       
    19 
       
    20 import com.nokia.mj.impl.rt.support.ApplicationInfo;
       
    21 import com.nokia.mj.impl.utils.Uid;
       
    22 
       
    23 public class ApplicationInfoImpl extends ApplicationInfo
       
    24 {
       
    25     private String iProtectionDomain = null;
       
    26 
       
    27     /**
       
    28      */
       
    29     public String getRuntimeType()
       
    30     {
       
    31         // See runtime types defined in ApplicationInfo class.
       
    32         return "UnitTest_Runner";
       
    33     }
       
    34 
       
    35     /**
       
    36      */
       
    37     public String getProtectionDomain()
       
    38     {
       
    39         return MANUFACTURER_DOMAIN;
       
    40     }
       
    41 
       
    42     /**
       
    43      */
       
    44     public Uid getUid()
       
    45     {
       
    46         return Uid.createUid("[ffffffff]");
       
    47     }
       
    48 
       
    49     /**
       
    50      */
       
    51     public Uid getSuiteUid()
       
    52     {
       
    53         throw new RuntimeException
       
    54         ("Get suite uid is not applicable for TckRunner");
       
    55     }
       
    56 
       
    57     /**
       
    58      */
       
    59     public String getSuiteName()
       
    60     {
       
    61         return getName();
       
    62     }
       
    63 
       
    64     /**
       
    65      */
       
    66     public String getName()
       
    67     {
       
    68         return "JavaUnitTester";
       
    69     }
       
    70 
       
    71     /**
       
    72      */
       
    73     public String getVendor()
       
    74     {
       
    75         return "Nokia";
       
    76     }
       
    77 
       
    78     /**
       
    79      */
       
    80     public String getVersion()
       
    81     {
       
    82         return "1.0.0";
       
    83     }
       
    84 
       
    85     /**
       
    86      */
       
    87     public String getRootPath()
       
    88     {
       
    89         return ".";
       
    90     }
       
    91 
       
    92     /**
       
    93      */
       
    94     public String getMainClass()
       
    95     {
       
    96         throw new RuntimeException
       
    97         ("Get main class is not applicable for UntiTestRunner");
       
    98     }
       
    99 
       
   100     /**
       
   101      */
       
   102     public String getAttribute(String key)
       
   103     {
       
   104         return null;
       
   105     }
       
   106 }