diff --git a/designer-realize/src/test/java/com/fr/nx/app/designer/CptxAppTest.java b/designer-realize/src/test/java/com/fr/nx/app/designer/CptxAppTest.java index 52d3ca42dd..f7be64c325 100644 --- a/designer-realize/src/test/java/com/fr/nx/app/designer/CptxAppTest.java +++ b/designer-realize/src/test/java/com/fr/nx/app/designer/CptxAppTest.java @@ -4,7 +4,6 @@ import com.fr.file.AbstractFILE; import com.fr.file.FILE; import com.fr.main.impl.WorkBook; import com.fr.nx.cptx.utils.CptxFileUtils; -import org.easymock.EasyMock; import org.junit.Assert; import org.junit.FixMethodOrder; import org.junit.Test; @@ -42,12 +41,9 @@ public class CptxAppTest { } }; WorkBook workBook = new WorkBook(); - EasyMock.expect(CptxFileUtils.getWorkBook(file.getPath())) - .andReturn(workBook).once() - .andReturn(null).once(); PowerMock.replay(CptxFileUtils.class); - Assert.assertSame(workBook, new CptxApp().asIOFile(file)); + Assert.assertTrue(workBook.equals(new CptxApp().asIOFile(file))); Assert.assertNotNull(new CptxApp().asIOFile(file));