mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
test fixes
This commit is contained in:
@ -325,7 +325,7 @@ class QValueFormatterTest extends BaseTest
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
QRecord record = new QRecord().withValue("id", 47).withValue("blobField", blobBytes);
|
QRecord record = new QRecord().withValue("id", 47).withValue("blobField", blobBytes);
|
||||||
QValueFormatter.setBlobValuesToDownloadUrls(table, List.of(record));
|
QValueFormatter.setBlobValuesToDownloadUrls(table, List.of(record));
|
||||||
assertEquals("/data/testTable/47/blobField/Test+Table+47+Blob", record.getValueString("blobField"));
|
assertEquals("/data/testTable/47/blobField/Test%20Table%2047%20Blob", record.getValueString("blobField"));
|
||||||
assertEquals("Test Table 47 Blob", record.getDisplayValue("blobField"));
|
assertEquals("Test Table 47 Blob", record.getDisplayValue("blobField"));
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
@ -334,7 +334,7 @@ class QValueFormatterTest extends BaseTest
|
|||||||
adornment.withValue(AdornmentType.FileDownloadValues.DEFAULT_EXTENSION, "html");
|
adornment.withValue(AdornmentType.FileDownloadValues.DEFAULT_EXTENSION, "html");
|
||||||
record = new QRecord().withValue("id", 47).withValue("blobField", blobBytes);
|
record = new QRecord().withValue("id", 47).withValue("blobField", blobBytes);
|
||||||
QValueFormatter.setBlobValuesToDownloadUrls(table, List.of(record));
|
QValueFormatter.setBlobValuesToDownloadUrls(table, List.of(record));
|
||||||
assertEquals("/data/testTable/47/blobField/Test+Table+47+Blob.html", record.getValueString("blobField"));
|
assertEquals("/data/testTable/47/blobField/Test%20Table%2047%20Blob.html", record.getValueString("blobField"));
|
||||||
assertEquals("Test Table 47 Blob.html", record.getDisplayValue("blobField"));
|
assertEquals("Test Table 47 Blob.html", record.getDisplayValue("blobField"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class CronDescriberTest extends BaseTest
|
|||||||
assertEquals("At 0 seconds, 0 minutes, midnight, on every day of every month, from Monday to Friday.", CronDescriber.getDescription("0 0 0 * * MON-FRI"));
|
assertEquals("At 0 seconds, 0 minutes, midnight, on every day of every month, from Monday to Friday.", CronDescriber.getDescription("0 0 0 * * MON-FRI"));
|
||||||
assertEquals("At 0 seconds, 0 minutes, midnight, on every day of every month, Sunday, Saturday.", CronDescriber.getDescription("0 0 0 * * 1,7"));
|
assertEquals("At 0 seconds, 0 minutes, midnight, on every day of every month, Sunday, Saturday.", CronDescriber.getDescription("0 0 0 * * 1,7"));
|
||||||
assertEquals("At 0 seconds, 0 minutes, 2 AM, 6 AM, noon, 4 PM, 8 PM, on every day of every month, every day of the week.", CronDescriber.getDescription("0 0 2,6,12,16,20 * * ?"));
|
assertEquals("At 0 seconds, 0 minutes, 2 AM, 6 AM, noon, 4 PM, 8 PM, on every day of every month, every day of the week.", CronDescriber.getDescription("0 0 2,6,12,16,20 * * ?"));
|
||||||
assertEquals("??", CronDescriber.getDescription("0/5 14,18,3-39,52 * ? JAN,MAR,SEP MON-FRI 2002-2010"));
|
assertEquals("At every 5 seconds starting at 0, 14, 18, 3-39, 52 minutes, every hour, on every day of January, March, September, from Monday to Friday, in 2002-2010.", CronDescriber.getDescription("0/5 14,18,3-39,52 * ? JAN,MAR,SEP MON-FRI 2002-2010"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user