我使用新的Eclipse.使用jUnit创建演示测试(我添加了默认的jUnit库内置Eclipse).然后我写这段代码:
import junit.framework.*;
import org.junit.Test;
public class SimpleTest extends TestCase {
public SimpleTest(String name) {
super(name);
}
public final void main(String method){
}
@Test
public final void testSimpleTest() {
int answer = 2;
assertEquals((1+1), answer);
}
}
Run Code Online (Sandbox Code Playgroud)
但它没有运行.在"调试"选项卡中:
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner at localhost:52754
Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: not available [local variables unavailable]
AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Run Code Online (Sandbox Code Playgroud)
我怎么解决这个问题?
当你拖动时,这个地图被平移......但是如果你拖动KML特征(带圆圈的图标),则没有任何反应
我用PHP写了一些代码到备份数据库.
这是我的代码:
exec("mysqldump --opt -h localhost -u root test > mydb.sql");
Run Code Online (Sandbox Code Playgroud)
但是我的文件(mydb.sql)中有0字节.我也运行passthru(),system(),但它仍然得到0字节.
我尝试使用命令.有用.
我使用最新的XAMPP作为我的localhost.
那么,我怎样才能让它正常工作?