📄 ozonetestsuiteloader.java
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by DigitalSeame are// Copyright (C) 1997-2000 by DigitalSesame All rights reserved.//// $Id$package test;import junit.runner.TestSuiteLoader;/** * <p>This is a TestSuiteLoader for Ozone's database. * * <p>The problem with standard JUnit is that it create new * classloader for each test suite. This does not work well with * Ozone. It case a lot of confusion in determining the equivlance of * object. * * @author <a href="http://www.softwarebuero.de/">SMB</a> * @author <a href="mailto:david@d11e.com">David Li</a> * @version $Revision$Date$ */class OzoneTestSuiteLoader implements TestSuiteLoader { private ClassLoader fClassLoader = null; protected OzoneTestSuiteLoader() { fClassLoader = OzoneTestSuiteLoader.class.getClassLoader(); } public Class load(String suiteClassName) throws ClassNotFoundException { return fClassLoader.loadClass(suiteClassName); } public Class reload(Class aClass) throws ClassNotFoundException { return aClass; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -