Class AuditLoggerTest
java.lang.Object
ubic.gemma.core.security.audit.AuditLoggerTest
Guards the identifying facts in the
AuditLogger line.
gemma-audit.log is the only record of an experiment deletion that outlives the
experiment: the entity's audit trail and every event on it are cascade-removed with it
(AbstractAuditable.auditTrail and AuditTrail.events are both mapped
CascadeType.ALL), and no other row in the schema keeps a description of what went.
A line naming only the numeric id is therefore unreadable after the fact — the id resolves
to nothing. These tests pin the short name and name into the line.
- Author:
- phase3-agent
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AuditLoggerTest
public AuditLoggerTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
deleteLineNamesTheExperimentNotJustItsId
@Test public void deleteLineNamesTheExperimentNotJustItsId() -
lineStillCarriesClassIdActionAndPerformer
@Test public void lineStillCarriesClassIdActionAndPerformer() -
anAuditableWithNoShortNameStillRenders
@Test public void anAuditableWithNoShortNameStillRenders()
-