mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
CE-604 Let a customizer set a record label
This commit is contained in:
@ -121,6 +121,12 @@ class QValueFormatterTest extends BaseTest
|
||||
table = new QTableMetaData().withPrimaryKeyField("id");
|
||||
assertEquals("42", QValueFormatter.formatRecordLabel(table, new QRecord().withValue("id", 42)));
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
// exceptional flow: no recordLabelFormat specified, and record already had a label //
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
table = new QTableMetaData().withPrimaryKeyField("id");
|
||||
assertEquals("my label", QValueFormatter.formatRecordLabel(table, new QRecord().withRecordLabel("my label").withValue("id", 42)));
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// exceptional flow: no fields for the format //
|
||||
/////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user