/* Ċ Ġ* ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ġ* Ċ Ġ* ĠThe ĠOpen Search ĠContributors Ġrequire Ġcontributions Ġmade Ġto Ċ Ġ* Ġthis Ġfile Ġbe Ġlicensed Ġunder Ġthe ĠApache - 2 . 0 Ġlicense Ġor Ġa Ċ Ġ* Ġcompatible Ġopen Ġsource Ġlicense . Ċ Ġ* Ċ Ġ* ĠMod ifications ĠCopyright ĠOpen Search ĠContributors . ĠSee Ċ Ġ* ĠGitHub Ġhistory Ġfor Ġdetails . Ċ Ġ*/ Ċ Ċ package Ġorg . opense arch . index management . rollup . model Ċ Ċ import Ġorg . opense arch . index management . rollup . model . Roll up Field Mapping . Companion . UNKNOWN _ MAPPING Ċ import Ġorg . opense arch . test . Open Search TestCase Ċ Ċ class ĠRoll up Field Mapping Tests Ġ: ĠOpen Search TestCase () Ġ{ ĊĊĠĠĠ Ġfun Ġ` test Ġto Issue `() Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġfield Mapping Ġ= ĠRoll up Field Mapping ( Roll up Field Mapping . Companion . FieldType . DIMENSION , Ġ" dummy - field ", Ġ" terms ") ĊĠĠĠĠĠĠĠ Ġvar Ġactual Ġ= Ġfield Mapping . to Issue () ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġterms Ġgrouping Ġon Ġdummy - field ", Ġactual ) ĊĊĠĠĠĠĠĠĠ Ġactual Ġ= Ġfield Mapping . to Issue ( true ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġfield Ġdummy - field ", Ġactual ) ĊĊĠĠĠĠĠĠĠ Ġfield Mapping Ġ= ĠRoll up Field Mapping ( Roll up Field Mapping . Companion . FieldType . METRIC , Ġ" dummy - field ", Ġ" sum ") ĊĠĠĠĠĠĠĠ Ġactual Ġ= Ġfield Mapping . to Issue () ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġsum Ġaggregation Ġon Ġdummy - field ", Ġactual ) ĊĊĠĠĠĠĠĠĠ Ġactual Ġ= Ġfield Mapping . to Issue ( true ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġfield Ġdummy - field ", Ġactual ) ĊĊĠĠĠĠĠĠĠ Ġfield Mapping Ġ= ĠRoll up Field Mapping ( Roll up Field Mapping . Companion . FieldType . DIMENSION , Ġ" dummy - field ", ĠUNKNOWN _ MAPPING ) ĊĠĠĠĠĠĠĠ Ġactual Ġ= Ġfield Mapping . to Issue ( false ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġfield Ġdummy - field ", Ġactual ) ĊĊĠĠĠĠĠĠĠ Ġactual Ġ= Ġfield Mapping . to Issue ( true ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" missing Ġfield Ġdummy - field ", Ġactual ) ĊĠĠĠ Ġ} Ċ } Ċ