test.java

来自「mms的编码」· Java 代码 · 共 90 行

JAVA
90
字号
/*************************************************************/
/* Copyright (C) 2007 OSS Nokalva, Inc.  All rights reserved.*/
/*************************************************************/

/* THIS FILE IS PROPRIETARY MATERIAL OF OSS NOKALVA, INC.
 * AND MAY BE USED ONLY BY DIRECT LICENSEES OF OSS NOKALVA, INC.
 * THIS FILE MAY NOT BE DISTRIBUTED. */

/* Generated for: Xiangtan University (Trial) */
/* Abstract syntax: mms */
/* ASN.1 Java project: mms.Mms */
/* Created: Wed Aug 15 17:57:55 2007 */
/* ASN.1 Compiler for Java version: 3.1 */
/* ASN.1 compiler options and file names specified:
 * -output mms -errorfile C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/10. -nolistingfile
 * -nomodlistingfile -noshortennames -constraints -nouserconstraints -valuerefs
 * -test -debug -warningmessages -verbose -nopedantic -ber -root -norelaySafe
 * -noparamtypesuperclass -autoencdec -ignoreIncompleteItems
 * C:/New_MMS_ASN.1/MMS.asn
 */


package mms;

import com.oss.asn1.*;

public abstract class Test extends Mms {
    
    public static void main(String[] args)
    {
	try {
	    setup();
	    boolean debug = true;
	    if (args.length == 1 && args[0].equals("-nodebug"))
		debug = false;
	    TestTool testTool = new TestTool(args);
	    testTool.testValues(cCoders, cTestValues, debug);
	    mms.Mms.deinitialize();
	    System.exit(testTool.getTestResults());
	} catch(Exception e) {
	    System.out.println("Initialization Failed");
	    return;
	}
    }
    
    public static void setup()
    {
	try {
	    mms.Mms.initialize();
	    initCoders();
	    initTestValues();
	} catch(Exception e) {
	    System.out.println("Initialization Failed");
	    return;
	}
    }
    
    private static void initCoders()
    {
	int index = 0;
	
	cCoders[index] = getBERCoder();
	cCoders[index++].useDefiniteLengthEncoding();
	cCoders[index] = getBERCoder();
	cCoders[index++].useIndefiniteLengthEncoding();
	cCoders[index] = getDERCoder();
    }
    
    private static Coder[] cCoders = new Coder[3];

    public static Coder[] getCoders()
    {
	return cCoders;
    }
    
    private static TestValue[] cTestValues = new TestValue[0];

    private static void initTestValues()
    {
	int index = 0;
	index = index + 0;
    }
    
    public static TestValue[] getTestValues()
    {
	return cTestValues;
    }
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?