unittestfactory.java
来自「SRI international 发布的OAA框架软件」· Java 代码 · 共 48 行
JAVA
48 行
/* $Id: UnitTestFactory.java,v 1.1 2003/09/27 03:01:14 giuli Exp $*/
/**************************************************************************
* Copyright 2002, 2003 SRI International. All rights reserved.
*
* The material contained in this file is confidential and proprietary to SRI
* International and may not be reproduced, published, or disclosed to others
* without authorization from SRI International.
*
* DISCLAIMER OF WARRANTIES
*
* SRI International MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
* SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SRI International SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THIS SOFTWARE
**************************************************************************/
package com.sri.test.javanetbridge.classes;
/**
* Created by IntelliJ IDEA.
* User: rgiuli
* Date: Sep 25, 2003
* Time: 3:00:50 PM
* To change this template use Options | File Templates.
*/
public class UnitTestFactory {
private static UnitTestFactory factory = new UnitTestFactory();
protected UnitTestFactory() {}
public static UnitTestFactory getFactory() {
return factory;
}
public Adder newAdder() {
return new AdderImpl();
}
public TestTypesInterface newTestTypesInterface() {
return new TestTypesInterfaceImpl();
}
public static void setUnitTestFactory(UnitTestFactory newFactory) {
factory = newFactory;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?