IDEMPIERE-5567 Support of UUID for Search (UU) data type (FHCA-4195) (#1787)
* IDEMPIERE-5567 Support of UUID for Search (UU) data type (FHCA-4195) - fix broken unit tests * - Fix problem with unit test: MTestTest.testReadingUpdatingTest:65 expected: <Test setting description> but was: <Test setting descriptionMTestEventDelegate>
This commit is contained in:
parent
beed782d4e
commit
449c124fe1
|
@ -0,0 +1,10 @@
|
||||||
|
-- IDEMPIERE-5567 Support of UUID on Search (FHCA-4195)
|
||||||
|
SELECT register_migration_script('202304171928_IDEMPIERE-5567.sql') FROM dual;
|
||||||
|
|
||||||
|
SET SQLBLANKLINES ON
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
ALTER TABLE t_selection MODIFY t_selection_uu DEFAULT ' ';
|
||||||
|
|
||||||
|
ALTER TABLE t_selection_infowindow MODIFY t_selection_uu DEFAULT ' ';
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- IDEMPIERE-5567 Support of UUID on Search (FHCA-4195)
|
||||||
|
SELECT register_migration_script('202304171928_IDEMPIERE-5567.sql') FROM dual;
|
||||||
|
|
||||||
|
ALTER TABLE t_selection ALTER COLUMN t_selection_uu SET DEFAULT ' ';
|
||||||
|
|
||||||
|
ALTER TABLE t_selection_infowindow ALTER COLUMN t_selection_uu SET DEFAULT ' ';
|
||||||
|
|
|
@ -2449,7 +2449,7 @@ public final class DB
|
||||||
insert.append(", ");
|
insert.append(", ");
|
||||||
if (selectedId instanceof Integer) {
|
if (selectedId instanceof Integer) {
|
||||||
insert.append((Integer)selectedId);
|
insert.append((Integer)selectedId);
|
||||||
insert.append(", ''");
|
insert.append(", ' '");
|
||||||
} else {
|
} else {
|
||||||
insert.append("0, ");
|
insert.append("0, ");
|
||||||
insert.append(DB.TO_STRING(selectedId.toString()));
|
insert.append(DB.TO_STRING(selectedId.toString()));
|
||||||
|
@ -2461,9 +2461,7 @@ public final class DB
|
||||||
if (viewIDValue == null){
|
if (viewIDValue == null){
|
||||||
insert.append("NULL");
|
insert.append("NULL");
|
||||||
}else{
|
}else{
|
||||||
insert.append("'");
|
insert.append(DB.TO_STRING(viewIDValue));
|
||||||
insert.append(viewIDValue);
|
|
||||||
insert.append("'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
insert.append(" FROM DUAL ");
|
insert.append(" FROM DUAL ");
|
||||||
|
|
|
@ -62,7 +62,8 @@ public class MTestTest extends AbstractTestCase {
|
||||||
test.setDescription("Test setting description");
|
test.setDescription("Test setting description");
|
||||||
test.saveEx();
|
test.saveEx();
|
||||||
test.load(trxName);
|
test.load(trxName);
|
||||||
assertEquals("Test setting description", test.getDescription());
|
String newDescription = test.getDescription();
|
||||||
|
assertTrue(newDescription.startsWith("Test setting description"));
|
||||||
MTest testSys = new MTest(ctx, TestInSystem, trxName);
|
MTest testSys = new MTest(ctx, TestInSystem, trxName);
|
||||||
testSys.setDescription("Test setting description");
|
testSys.setDescription("Test setting description");
|
||||||
AdempiereException thrown = assertThrows(
|
AdempiereException thrown = assertThrows(
|
||||||
|
|
Loading…
Reference in New Issue