📄 chemistrytestcase.java
字号:
/**
* ChemistryTestCase.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package de.bov.spheon;
public class ChemistryTestCase extends junit.framework.TestCase {
public ChemistryTestCase(java.lang.String name) {
super(name);
}
public void test1ChemistryPortGetElementByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
de.bov.spheon.ChemistryElement value = null;
value = binding.getElementByNumber(0);
// TBD - validate results
}
public void test2ChemistryPortGetSymbolByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.getSymbolByNumber(0);
// TBD - validate results
}
public void test3ChemistryPortGetNameByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.getNameByNumber(0);
// TBD - validate results
}
public void test4ChemistryPortGetMassByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getMassByNumber(0);
// TBD - validate results
}
public void test5ChemistryPortGetMeltingPointByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getMeltingPointByNumber(0);
// TBD - validate results
}
public void test6ChemistryPortGetBoilingPointByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getBoilingPointByNumber(0);
// TBD - validate results
}
public void test7ChemistryPortFoundByNumber() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.foundByNumber(0);
// TBD - validate results
}
public void test8ChemistryPortGetElementBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
de.bov.spheon.ChemistryElement value = null;
value = binding.getElementBySymbol(new java.lang.String());
// TBD - validate results
}
public void test9ChemistryPortGetNumberBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
int value = -3;
value = binding.getNumberBySymbol(new java.lang.String());
// TBD - validate results
}
public void test10ChemistryPortGetNameBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.getNameBySymbol(new java.lang.String());
// TBD - validate results
}
public void test11ChemistryPortGetMassBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getMassBySymbol(new java.lang.String());
// TBD - validate results
}
public void test12ChemistryPortGetMeltingPointBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getMeltingPointBySymbol(new java.lang.String());
// TBD - validate results
}
public void test13ChemistryPortGetBoilingPointBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
double value = -3;
value = binding.getBoilingPointBySymbol(new java.lang.String());
// TBD - validate results
}
public void test14ChemistryPortFoundBySymbol() throws Exception {
de.bov.spheon.ChemistryBindingStub binding;
try {
binding = (de.bov.spheon.ChemistryBindingStub)
new de.bov.spheon.ChemistryLocator().getChemistryPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.foundBySymbol(new java.lang.String());
// TBD - validate results
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -