package com.vci.client.portal.test;
|
|
import org.junit.Assert;
|
import org.junit.Test;
|
|
import com.vci.client.portal.utility.UITools;
|
import com.vci.common.utility.ObjectUtility;
|
import com.vci.corba.common.VCIError;
|
import com.vci.corba.portal.data.PLTabPage;
|
|
public class TestPLTabPage {
|
|
//test保存PLTabPage
|
@org.junit.Test
|
public void testSavePLTabPage(){
|
PLTabPage plTabPage = new PLTabPage();
|
plTabPage.plOId = ObjectUtility.getNewObjectID36();
|
System.out.println(plTabPage.plOId);
|
plTabPage.plCode = "StandardManagementTabs";
|
plTabPage.plName = "标准管理";
|
plTabPage.plIsOpen = 1;
|
plTabPage.plLabel = "标准管理";
|
plTabPage.plDesc = "标准管理";
|
plTabPage.plSeq = 1;
|
plTabPage.plContextOId = "A4ECC7F9-CC90-CB94-4463-BB139C98A5B6";
|
plTabPage.plCreateUser = "developer";
|
plTabPage.plModifyUser = "developer";
|
plTabPage.plLicensOrs = "";
|
plTabPage.plOpenExpression = "";
|
|
try {
|
boolean flag = UITools.getService().savePLTabPage(plTabPage);
|
Assert.assertTrue(flag);
|
} catch (VCIError e) {
|
e.printStackTrace();
|
}
|
}
|
//
|
// // test更新PLTabPage
|
// @org.junit.Test
|
// public void testUpdatePLTabPage() {
|
// PLTabPage plTabPage = new PLTabPage();
|
// plTabPage.plOId = "2DC83F3F-2636-9D81-EE80-68FFF5264685";
|
// plTabPage.plCode = "update2";
|
// plTabPage.plName = "update2";
|
// plTabPage.plIsOpen = 2;
|
// plTabPage.plLabel = "plLabel";
|
// plTabPage.plDesc = "plDesc";
|
// plTabPage.plSeq = 2;
|
// plTabPage.plPageDefinationOId = "plPageDefinationOId";
|
// plTabPage.plCreateUser = "plCreateUser";
|
// plTabPage.plModifyUser = "plModifyUser";
|
// plTabPage.plLicensOrs = "plLicensOrs";
|
//
|
// try {
|
// boolean flag = Tool.getService().updatePLTabPage(plTabPage);
|
// Assert.assertTrue(flag);
|
// } catch (PLMError e) {
|
// e.printStackTrace();
|
// }
|
// }
|
//
|
// // test删除PLTabPage
|
// @org.junit.Test
|
// public void testDeletePLTabPage() {
|
// PLTabPage plTabPage = new PLTabPage();
|
// plTabPage.plOId = "963A49D3-D1C5-B8D5-201A-C9C986F85265";
|
// try {
|
// boolean flag = Tool.getService().deletePLTabPage(plTabPage);
|
// Assert.assertTrue(flag);
|
// } catch (PLMError e) {
|
// e.printStackTrace();
|
// }
|
// }
|
//
|
// // test删除PLTabPage
|
// @org.junit.Test
|
// public void testDeletePLTabPageById() {
|
// try {
|
// boolean flag = Tool.getService().deletePLTabPageByID("3CD7BF9E-16E0-2CD8-D0F0-DFDA2E1CDFB2");
|
// Assert.assertTrue(flag);
|
// } catch (PLMError e) {
|
// e.printStackTrace();
|
// }
|
// }
|
|
@Test
|
public void testGetPLTabPageById() throws VCIError{
|
PLTabPage o = UITools.getService().getPLTabPageById("0FEF4812-9FF4-5594-D013-A58E6E088C3F");
|
System.out.println();
|
}
|
|
@Test
|
public void testGetPLTabPageByPageDefinationOId() throws VCIError{
|
PLTabPage[] o = UITools.getService().getPLTabPagesByPageDefinationOId("plPageDefinationOId");
|
System.out.println();
|
}
|
|
@Test
|
public void testGetPLTabPagesByTypeANDCode() throws VCIError{
|
PLTabPage[] o = UITools.getService().getPLTabPagesByTypeANDCode("plRelatedType", "plCode");
|
System.out.println();
|
}
|
}
|