Class UnifiedLogResetTypeTest
java.lang.Object
client.UnifiedLogResetTypeTest
Pure-function tests for the unified-log (
_acc_char_log) domain enums
LogScope / ResetType and the period-key SQL mapping
CharacterLogManager.periodKeySql(ResetType) (offline, no DB/Timer).
The periodKeySql / periodKeyOf / periodKeyCase strings are the
core of the calendar-boundary reset semantics: there is no stored period_key column
— the period is derived on the fly from date_created and used as the uq_log
functional-index key, so a new period yields a new row (the reset). Pinning them guards
against an accidental edit silently flipping, e.g., the week start from Monday
(WEEKDAY) to Sunday (DAYOFWEEK), or the month granularity from %Y-%m
to %Y-%m-%d, and guards drift between CharacterLogManager and the matching
functional-index expression in DatabaseBootstrap / the SQL files. The DB UPSERT/SELECT
plumbing in setLog/getLog needs a live MySQL and is intentionally left to the
manual smoke checklist.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
UnifiedLogResetTypeTest
public UnifiedLogResetTypeTest()
-
-
Method Details
-
logScope_values
public void logScope_values() -
resetType_values
public void resetType_values() -
periodKeySql_day
public void periodKeySql_day() -
periodKeySql_week_isMondayStart
public void periodKeySql_week_isMondayStart() -
periodKeySql_month
public void periodKeySql_month() -
periodKeySql_never_isConstant
public void periodKeySql_never_isConstant() -
periodKeyOf_isPeriodKeySqlGeneralized
public void periodKeyOf_isPeriodKeySqlGeneralized() -
periodKeyOf_dateCreated_day
public void periodKeyOf_dateCreated_day() -
periodKeyOf_dateCreated_week_isMondayStart
public void periodKeyOf_dateCreated_week_isMondayStart() -
periodKeyOf_dateCreated_month
public void periodKeyOf_dateCreated_month() -
periodKeyCase_dateCreated_matchesFunctionalIndexExpr
public void periodKeyCase_dateCreated_matchesFunctionalIndexExpr()
-