use of org.hisp.dhis.common.DimensionalItemId in project dhis2-core by dhis2.
the class DataElementGroupResolverTest method verifyExpressionIsNotResolvedWhenDeGroupPrefixNotInUid0.
@Test
void verifyExpressionIsNotResolvedWhenDeGroupPrefixNotInUid0() {
// arrange
dimensionalItemId = new DimensionalItemId(DimensionItemType.DATA_ELEMENT_OPERAND, uid1, uid2, uid3, createIndicatorExpression());
String expression = createIndicatorExpression();
when(expressionService.getExpressionDimensionalItemIds(expression, INDICATOR_EXPRESSION)).thenReturn(Sets.newHashSet(dimensionalItemId));
// act
String resolvedExpression = resolver.resolve(expression);
// assert
assertEquals(expression, resolvedExpression);
}
Aggregations