|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe.alphafine.cell.model; |
|
|
|
|
|
|
|
|
|
import com.fr.design.actions.help.alphafine.AlphaFineConstants; |
|
|
|
|
import com.fr.design.actions.help.alphafine.AlphaFineCloudConstants; |
|
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
|
import com.fr.json.JSONException; |
|
|
|
|
import com.fr.json.JSONObject; |
|
|
|
@ -14,8 +14,8 @@ public class ModelTest {
|
|
|
|
|
Assert.assertEquals("name", documentModel.getName()); |
|
|
|
|
Assert.assertEquals("content", documentModel.getContent()); |
|
|
|
|
Assert.assertEquals(1, documentModel.getDocumentId()); |
|
|
|
|
Assert.assertEquals(AlphaFineConstants.DOCUMENT_DOC_URL + documentModel.getDocumentId() + ".html", documentModel.getDocumentUrl()); |
|
|
|
|
Assert.assertEquals(AlphaFineConstants.DOCUMENT_INFORMATION_URL + documentModel.getDocumentId(), documentModel.getInformationUrl()); |
|
|
|
|
Assert.assertEquals(AlphaFineCloudConstants.DOCUMENT_DOC_URL + documentModel.getDocumentId() + ".html", documentModel.getDocumentUrl()); |
|
|
|
|
Assert.assertEquals(AlphaFineCloudConstants.DOCUMENT_INFORMATION_URL + documentModel.getDocumentId(), documentModel.getInformationUrl()); |
|
|
|
|
Assert.assertEquals(documentModel.getStoreInformation(), documentModel.getInformationUrl()); |
|
|
|
|
Assert.assertEquals(CellType.DOCUMENT, documentModel.getType()); |
|
|
|
|
Assert.assertEquals(true, documentModel.hasAction()); |
|
|
|
|