Browse Source
* commit 'e5fd1dc1d1d3aaa5da43b434edcc55845f2153c2': REPORT-26263 切换远程目录到tomcat,放置一段时间切回本地,出现切换失败的弹窗,实际切换成功 修复 npe 。final/10.0
Kara
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