Class DataAccessServiceTest
java.lang.Object
org.diabetestechnology.drh.service.http.hub.prime.service.DataAccessServiceTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Constructor Details
-
DataAccessServiceTest
public DataAccessServiceTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
testAttachDatabase
- Throws:
Exception
-
testAttachDatabase_Success
- Throws:
Exception
-
testAttachDatabase_WhenFails
- Throws:
Exception
-
testCheckDatabaseAttachment_WhenNotFound
- Throws:
Exception
-
testResponse
@Test public void testResponse() -
testRefreshDatabase_WhenNotAttached
- Throws:
Exception
-
testRefreshDatabase_WhenAlreadyAttached
- Throws:
Exception
-
testGetParticipantCGMDates
- Throws:
Exception
-
testGetParticipantCGMDates_NoDataFound
- Throws:
Exception
-
testGetParticipantCGMDates_DBNotAttached
@Test public void testGetParticipantCGMDates_DBNotAttached() -
testGetParticipantCGMDates_DataAccessException
- Throws:
Exception
-
testGetCoefficientOfVariation_Success
- Throws:
Exception
-
testGetCoefficientOfVariation_DatabaseNotAttached
@Test public void testGetCoefficientOfVariation_DatabaseNotAttached() -
testGetCoefficientOfVariation_DataAccessException
- Throws:
Exception
-
testCalculateTimeAboveRangeVeryHigh
- Throws:
Exception
-
testCalculateTimeAboveRangeVeryHigh_DatabaseNotAttached
- Throws:
Exception
-
testCalculateTimeAboveRangeVeryHigh_EmptyResult
- Throws:
Exception
-
testCalculateTimeAboveRangeVeryHigh_DataAccessException
- Throws:
Exception
-
testCalculateTimeInTightRange
- Throws:
Exception
-
testCalculateTimeInTightRange_DatabaseNotAttached
- Throws:
Exception
-
testCalculateTimeInTightRange_EmptyResult
- Throws:
Exception
-
testCalculateTimeInTightRange_DataAccessException
- Throws:
Exception
-
testCalculateTimeAboveRangeHigh
- Throws:
Exception
-
testCalculateTimeAboveRangeHigh_DatabaseNotAttached
- Throws:
Exception
-
testCalculateTimeAboveRangeHigh_EmptyResult
- Throws:
Exception
-
testCalculateTimeAboveRangeHigh_DataAccessException
- Throws:
Exception
-
testGlycemicRiskIndicator
- Throws:
Exception
-
testGlycemicRiskIndicator_DatabaseNotAttached
- Throws:
Exception
-
testGlycemicRiskIndicator_DataAccessException
- Throws:
Exception
-
testLiabilityIndex
- Throws:
Exception
-
testLiabilityIndex_DatabaseNotAttached
- Throws:
Exception
-
testLiabilityIndex_DataAccessException
- Throws:
Exception
-
testGetMeanAmplitude
- Throws:
Exception
-
testGetMeanAmplitude_DatabaseNotAttached
- Throws:
Exception
-
testGetMeanAmplitude_DataAccessException
- Throws:
Exception
-
testGetMeanAmplitude_EmptyResult
- Throws:
Exception
-
testCalculateMValue
- Throws:
Exception
-
testCalculateMValue_DatabaseNotAttached
- Throws:
Exception
-
testCalculateMValue_DataAccessException
- Throws:
Exception
-
testCalculateMValue_EmptyResult
- Throws:
Exception
-
testGetMeanGlucose
- Throws:
Exception
-
testGetMeanGlucose_DatabaseNotAttached
- Throws:
Exception
-
testGetMeanGlucose_DataAccessException
- Throws:
Exception
-
testGetNumberOfDaysCGMWorn
- Throws:
Exception
-
testGetNumberOfDaysCGMWorn_DatabaseNotAttached
- Throws:
Exception
-
testGetNumberOfDaysCGMWorn_DataAccessException
- Throws:
Exception
-
testGetPercentageTimeCGMActive
- Throws:
Exception
-
testGetPercentageTimeCGMActive_DatabaseNotAttached
- Throws:
Exception
-
testGetPercentageTimeCGMActive_DataAccessException
- Throws:
Exception
-
testGetGlucoseManagementIndicator
- Throws:
Exception
-
testGetGlucoseManagementIndicator_DatabaseNotAttached
- Throws:
Exception
-
testGetGlucoseManagementIndicator_DataAccessException
- Throws:
Exception
-
testGetStudyParticipantDashboard
- Throws:
Exception
-
testGetStudyParticipantDashboard_DatabaseNotAttached
- Throws:
Exception
-
testGetStudyDetails
- Throws:
Exception
-
testGetStudyDetails_DatabaseNotAttached
- Throws:
Exception
-
testGetParticipantMetrics
- Throws:
Exception
-
testGetParticipantMetrics_DatabaseNotAttached
- Throws:
Exception
-
testGetParticipantMetrics_DataAccessException
- Throws:
Exception
-
testGetTimeRangeStackedData
- Throws:
Exception
-
testGetTimeRangeStackedData_DatabaseNotAttached
- Throws:
Exception
-
testGetTimeRangeStackedData_DataAccessException
- Throws:
Exception
-
testCalculateAverageDailyRisk
- Throws:
Exception
-
testCalculateAverageDailyRisk_DatabaseNotAttached
- Throws:
Exception
-
testCalculateAverageDailyRisk_DataAccessException
- Throws:
Exception
-
testCalculateAverageDailyRisk_NullResult
- Throws:
Exception
-
testCalculateJIndex
- Throws:
Exception
-
testCalculateJIndex_DatabaseNotAttached
- Throws:
Exception
-
testCalculateJIndex_DataAccessException
- Throws:
Exception
-
testCalculateLBGIandHBGI
- Throws:
Exception
-
testCalculateLBGIandHBGI_DatabaseNotAttached
- Throws:
Exception
-
testCalculateLBGIandHBGI_DataAccessException
- Throws:
Exception
-
testCalculateGRADE
- Throws:
Exception
-
testCalculateGRADE_DatabaseNotAttached
- Throws:
Exception
-
testCalculateGRADE_DataAccessException
- Throws:
Exception
-
testCalculateMeanOfDailyDifferences
- Throws:
Exception
-
testCalculateMeanOfDailyDifferences_DatabaseNotAttached
- Throws:
Exception
-
testCalculateMeanOfDailyDifferences_DataAccessException
- Throws:
Exception
-
testCalculateCONGA
- Throws:
Exception
-
testCalculateCONGA_DatabaseNotAttached
- Throws:
Exception
-
testCalculateCONGA_DataAccessException
- Throws:
Exception
-
testReplacePlaceholders
@Test public void testReplacePlaceholders() -
testGetParticipantInfos
@Test public void testGetParticipantInfos() -
testCalculateTimeBelowRangeLow_NoData
@Test public void testCalculateTimeBelowRangeLow_NoData() throws InterruptedException, ExecutionException -
testCalculateTimeBelowRangeLow_RetryLogic
@Test public void testCalculateTimeBelowRangeLow_RetryLogic() throws InterruptedException, ExecutionException -
testCalculateTimeBelowRangeLow_Success
- Throws:
Exception
-
testCalculateTimeBelowRangeLow_DatabaseNotAttached
- Throws:
Exception
-
testGetFieldName_Success
- Throws:
SQLException
-
testCommonResponseBuilder_Success
- Throws:
Exception
-
testResponseBuilder_SuccessWithData
@Test public void testResponseBuilder_SuccessWithData() -
testResponseBuilder_SuccessNoData
@Test public void testResponseBuilder_SuccessNoData() -
testResponseBuilder_Error
@Test public void testResponseBuilder_Error() -
testGetSortModel_AscendingSort
@Test public void testGetSortModel_AscendingSort() -
testGetSortModel_DescendingSort
@Test public void testGetSortModel_DescendingSort() -
testCreateCondition_LikeFilter
@Test public void testCreateCondition_LikeFilter() -
testCreateCondition_EqualsFilter
@Test public void testCreateCondition_EqualsFilter() -
testCreateCondition_NumberFilter
@Test public void testCreateCondition_NumberFilter() -
testCreateCondition_DateFilter
@Test public void testCreateCondition_DateFilter() -
testCreateCondition_ContainsFilter
@Test public void testCreateCondition_ContainsFilter() -
testCreateCondition_InvalidFilterType
@Test public void testCreateCondition_InvalidFilterType() -
testCreateCondition_NullFilterModel
@Test public void testCreateCondition_NullFilterModel() -
testComputeAllMetrics_Success
- Throws:
Exception
-
testComputeAllMetrics_NoRecordsFound
- Throws:
Exception
-
testComputeAllMetrics_InvalidDatabaseAlias
@Test public void testComputeAllMetrics_InvalidDatabaseAlias() -
testComputeAllMetrics_DataAccessException_MaxRetriesExceeded
- Throws:
Exception
-
testGetDailyGlucoseProfile_Success
@Test public void testGetDailyGlucoseProfile_Success() -
testGetDailyGlucoseProfile_NoData
@Test public void testGetDailyGlucoseProfile_NoData() -
testGetDailyGlucoseProfile_InvalidStudyId
@Test public void testGetDailyGlucoseProfile_InvalidStudyId() -
testGetAmbulatoryGlucoseProfile_DatabaseNotAttached
@Test public void testGetAmbulatoryGlucoseProfile_DatabaseNotAttached() -
testGetAmbulatoryGlucoseProfile_DataAccessExceptions
@Test public void testGetAmbulatoryGlucoseProfile_DataAccessExceptions() -
testCalculateTimeInRange_succcess
- Throws:
Exception
-
testCalculateTimeInRange_databaseNotAttached
@Test public void testCalculateTimeInRange_databaseNotAttached() -
testCalculateTimeInRange_noDataFound
- Throws:
Exception
-
testCalculateTimeInRange_queryFailureWithRetries
- Throws:
Exception
-
testCalculateTimeBelowRangeVeryLow_Success
- Throws:
Exception
-
testCalculateTimeBelowRangeVeryLow_NoData
- Throws:
Exception
-
testCalculateTimeBelowRangeVeryLow_MaxRetriesExceeded
- Throws:
Exception
-
testGetStudyTotalCgmFiles
- Throws:
Exception
-
testGetIndividualStudyDetails
- Throws:
Exception
-