forked from fanruan/design
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