📄 testengclose.java
字号:
/*
* Created on 19.06.2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package jmatlink.testsuite.jmatlink;
import jmatlink.JMatLink;
import jmatlink.JMatLinkException;
import junit.framework.TestCase;
/**
* @author stefan
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class testEngClose extends TestCase {
JMatLink jmatlink = new JMatLink ();
public void testEngClose01() {
jmatlink = new JMatLink ();
long a = jmatlink.engOpenSingleUse();
long b = jmatlink.engOpenSingleUse();
jmatlink.engClose(b);
// only close engine once
try {
jmatlink.engClose(b); // error
fail("should fail");
}
catch (JMatLinkException e) { assertTrue(true); }
// only close engine once
try {
jmatlink.engClose(b); // error
fail("should fail");
}
catch (JMatLinkException e) { assertTrue(true); }
jmatlink.engClose(a);
}
/*
* Class under test for void engClose(int)
*/
public void testEngCloseint() {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -