我正在尝试使用import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
@PrepareForTest(FinalClass.class)
public class TestFinalClass{
@Test
public void whenMockFinalClassMockWorks() {
FinalClass finalklass = PowerMockito.mock(FinalClass.class);
}
}
从sftp服务器下载(获取)文件,即使在ReadableStream和事件{{1上触发了事件ssh2-sftp-client
之后,程序也不会终止并挂起}}在WriteableStream上触发。下面是程序及其输出。也没有错误,该如何调试?怎么了?任何帮助将不胜感激
end, close
finish and close