Browse Source

REPORT-38917 模板短时间内的保存记录对应多个UUID

feature/big-screen
hades 4 years ago
parent
commit
67c043b476
  1. 8
      designer-base/src/test/java/com/fr/design/DesignerEnvManagerTest.java
  2. 3
      designer-base/src/test/java/com/fr/design/data/DesignTableDataManagerTest.java

8
designer-base/src/test/java/com/fr/design/DesignerEnvManagerTest.java

@ -3,6 +3,7 @@ package com.fr.design;
import junit.framework.TestCase;
import java.util.Locale;
import org.junit.Assert;
public class DesignerEnvManagerTest extends TestCase{
@ -17,4 +18,11 @@ public class DesignerEnvManagerTest extends TestCase{
assertEquals("下边界", envManager.getLanguage(), Locale.SIMPLIFIED_CHINESE);
}
public void testGetUUID() {
DesignerEnvManager envManager = new DesignerEnvManager();
String uuid0 = envManager.getUUID();
String uuid1 = envManager.getUUID();
Assert.assertEquals(uuid0, uuid1);
}
}

3
designer-base/src/test/java/com/fr/design/data/DesignTableDataManagerTest.java

@ -155,4 +155,7 @@ public class DesignTableDataManagerTest {
DesignTableDataManager.addDsColumnNames("ds1", new String[]{"a", "b", "c"});
Assert.assertEquals(columnNames, DesignTableDataManager.getDsColumnNames("ds1"));
}
public void testFireDsChanged() {
}
}

Loading…
Cancel
Save