forked from fanruan/design
Browse Source
* commit '5433e90036069c4d51d2e6fd2098edfaac5d27e7': REPORT-26263 切换远程目录到tomcat,放置一段时间切回本地,出现切换失败的弹窗,实际切换成功 修复 npe 。feature/big-screen
Harrison
5 years ago
2 changed files with 26 additions and 2 deletions
@ -0,0 +1,20 @@
|
||||
package com.fr.design.mainframe; |
||||
|
||||
import org.easymock.EasyMock; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
|
||||
public class JFormTest { |
||||
|
||||
@Test |
||||
public void testRun() { |
||||
|
||||
JForm mockForm = EasyMock.partialMockBuilder(JForm.class).addMockedMethod("getUndoManager").createMock(); |
||||
try { |
||||
mockForm.canUndo(); |
||||
} catch (Exception e) { |
||||
Assert.fail(); |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue