EMMA Coverage Report (generated Mon Mar 20 21:34:30 PST 2006)
[all classes][com.moesol.bindings.platform_sdk.base_services]

COVERAGE SUMMARY FOR SOURCE FILE [Process.java]

nameclass, %method, %block, %line, %
Process.java100% (1/1)75%  (3/4)62%  (13/21)75%  (6/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Process100% (1/1)75%  (3/4)62%  (13/21)75%  (6/8)
Process (): void 0%   (0/1)0%   (0/3)0%   (0/1)
SetEnvironmentVariable (String, String): void 100% (1/1)58%  (7/12)75%  (3/4)
<static initializer> 100% (1/1)100% (3/3)100% (2/2)
GetEnvironmentVariable (String): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * $Id: Process.java,v 1.1.1.5 2004/05/25 20:23:16 hastings Exp $
3 *
4 * (c) Copyright, Moebius Solutions, Inc., 2004
5 *
6 *                       All Rights Reserved
7 *
8 * This material may be reproduced by or for the U. S. Government
9 * pursuant to the copyright license under the clause at
10 * DFARS 252.227-7014 (OCT 2001).
11 */
12 
13package com.moesol.bindings.platform_sdk.base_services;
14 
15import com.moesol.bindings.NativeLibraryLoader;
16import com.moesol.bindings.platform_sdk.windows_api.PlatformSDK;
17import com.moesol.bindings.platform_sdk.windows_api.Win32Exception;
18 
19/**
20 * @author robert
21 */
22public class Process {
23        static {
24                NativeLibraryLoader.loadLibrary("com_moesol_bindings");
25        }
26        public static String GetEnvironmentVariable(String name) {
27                return jni_GetEnvironmentVariable(name);
28        }
29        public static void SetEnvironmentVariable(String name, String value) {
30                boolean r = jni_SetEnvironmentVariable(name, value);
31                if (!r) {
32                        throw new Win32Exception(PlatformSDK.GetLastError());
33                }
34        }
35        private static native String jni_GetEnvironmentVariable(String name);
36        private static native boolean jni_SetEnvironmentVariable(String name,
37                        String value);
38}

[all classes][com.moesol.bindings.platform_sdk.base_services]
EMMA 2.0.5312 (C) Vladimir Roubtsov