📄 abstracttestsuite.java
字号:
package test.org.mandarax.util.resultsetfilters;
/*
* Copyright (C) 1999-2004 <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</a>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Abstract test suite class with some utility methods.
* @author <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</A>
* @version 3.4 <7 March 05>
* @since 3.0
*/
public class AbstractTestSuite implements ExampleConstants {
/**
* Convert a record.
*/
static Object[] convert(String name,String fname,String dob,int weight,double size) {
try {
return new Object[] {name,fname,TestKB.parse(dob),new Integer(weight),new Double(size)};
}
catch (Exception x) {
x.printStackTrace();
return null;
}
}
/**
* Convert a record.
*/
static Object[] convert(String name,String dob,int weight1,int weight2,int weight3) {
try {
return new Object[] {name,TestKB.parse(dob),new Integer(weight1),new Integer(weight2),new Integer(weight3)};
}
catch (Exception x) {
x.printStackTrace();
return null;
}
}
/**
* Convert a record.
*/
static Object[] convert(String name,String dob,int weight1,int weight2,int weight3,int size) {
try {
return new Object[] {name,TestKB.parse(dob),new Integer(weight1),new Integer(weight2),new Integer(weight3),new Integer(size)};
}
catch (Exception x) {
x.printStackTrace();
return null;
}
}
/**
* Convert a record.
*/
static Object[] convert(String name,String dob,double size1,double size2,double size3) {
try {
return new Object[] {name,TestKB.parse(dob),new Double(size1),new Double(size2),new Double(size3)};
}
catch (Exception x) {
x.printStackTrace();
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -