Browse Source

Pull request #12355: REPORT-94637 单元测试修复@obo-com.fr.nx

Merge in DESIGN/design from ~OBO/design1:release/11.0 to release/11.0

* commit 'b12796d82b0abf1cc4eb49fcdac7a3d856a8cfc7':
  REPORT-94637 单元测试修复@obo-com.fr.nx
release/11.0
Obo-王学仁 1 year ago
parent
commit
190fe38dec
  1. 6
      designer-realize/src/test/java/com/fr/nx/app/designer/CptxAppTest.java

6
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));

Loading…
Cancel
Save