Class CurationDetailsServiceImplTest
java.lang.Object
ubic.gemma.persistence.service.common.auditAndSecurity.curation.CurationDetailsServiceImplTest
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
public class CurationDetailsServiceImplTest
extends Object
Lightweight Mockito unit tests for
CurationDetailsServiceImpl, the
compatibility shim that exposes the legacy CurationDetails read API
over the Phase B-1 ticket layer (see AUDIT_AS_WORKFLOW_RECCE.md
Decision 1). Verifies the three field mappings:
needsAttention↔ any open ticket of typeGENERIC/BATCH_INFO_NEEDED/QUALITY_REVIEWtroubled↔ any open ticket of typeQUALITY_REVIEWlastUpdated↔max(TicketEvent.occurredAt)across open tickets, ornullwhen none exist
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoid
-
Constructor Details
-
CurationDetailsServiceImplTest
public CurationDetailsServiceImplTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
needsAttention_noOpenTickets_isFalse
@Test public void needsAttention_noOpenTickets_isFalse() -
needsAttention_openGenericTicket_isTrue
@Test public void needsAttention_openGenericTicket_isTrue() -
needsAttention_openBatchInfoTicket_isTrue
@Test public void needsAttention_openBatchInfoTicket_isTrue() -
needsAttention_openQualityReviewTicket_isTrue
@Test public void needsAttention_openQualityReviewTicket_isTrue() -
needsAttention_openRealignmentTicket_isFalse
@Test public void needsAttention_openRealignmentTicket_isFalse() -
troubled_noOpenTickets_isFalse
@Test public void troubled_noOpenTickets_isFalse() -
troubled_qualityReviewOpen_isTrue
@Test public void troubled_qualityReviewOpen_isTrue() -
troubled_genericOnly_isFalse
@Test public void troubled_genericOnly_isFalse() -
lastUpdated_noOpenTickets_isNull
@Test public void lastUpdated_noOpenTickets_isNull() -
lastUpdated_returnsMaxOccurredAtAcrossOpenTickets
@Test public void lastUpdated_returnsMaxOccurredAtAcrossOpenTickets() -
curatableOverload_routesExpressionExperimentToEEType
@Test public void curatableOverload_routesExpressionExperimentToEEType() -
curatableOverload_routesArrayDesignToADType
@Test public void curatableOverload_routesArrayDesignToADType() -
curatableOverload_rejectsTransientCuratable
@Test public void curatableOverload_rejectsTransientCuratable() -
rejectsNullTargetType
@Test public void rejectsNullTargetType() -
rejectsNullTargetId
@Test public void rejectsNullTargetId()
-