@Test public void testAllFilled() { final MbusChannelElementsDto requestData = new MbusChannelElementsDto(this.primaryAddress, this.deviceIdentification, this.identificationNumber, this.manufacturerIdentification, this.version, this.deviceTypeIdentification); final ChannelElementValuesDto channelValues = new ChannelElementValuesDto(this.channel, this.primaryAddress, this.identificationNumber, this.manufacturerIdentification, this.version, this.deviceTypeIdentification); assertThat(FindMatchingChannelHelper.matches(requestData, channelValues)) .withFailMessage(requestData + " should match " + channelValues) .isTrue(); }
public static boolean matches(final MbusChannelElementsDto mbusChannelElements, final ChannelElementValuesDto channelElementValues) { if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) { return wiredMbusMatches(mbusChannelElements, channelElementValues); } return mbusShortIdMatches(mbusChannelElements, channelElementValues); }
FindMatchingChannelHelper { public static boolean matches(final MbusChannelElementsDto mbusChannelElements, final ChannelElementValuesDto channelElementValues) { if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) { return wiredMbusMatches(mbusChannelElements, channelElementValues); } return mbusShortIdMatches(mbusChannelElements, channelElementValues); } }
FindMatchingChannelHelper { public static boolean matches(final MbusChannelElementsDto mbusChannelElements, final ChannelElementValuesDto channelElementValues) { if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) { return wiredMbusMatches(mbusChannelElements, channelElementValues); } return mbusShortIdMatches(mbusChannelElements, channelElementValues); } private  FindMatchingChannelHelper(); }
FindMatchingChannelHelper { public static boolean matches(final MbusChannelElementsDto mbusChannelElements, final ChannelElementValuesDto channelElementValues) { if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) { return wiredMbusMatches(mbusChannelElements, channelElementValues); } return mbusShortIdMatches(mbusChannelElements, channelElementValues); } private  FindMatchingChannelHelper(); static boolean matches(final MbusChannelElementsDto mbusChannelElements,
            final ChannelElementValuesDto channelElementValues); static boolean matchesPartially(final MbusChannelElementsDto mbusChannelElements,
            final ChannelElementValuesDto channelElementValues); static ChannelElementValuesDto bestMatch(final MbusChannelElementsDto mbusChannelElements,
            final List<ChannelElementValuesDto> channelElementValuesList); }
FindMatchingChannelHelper { public static boolean matches(final MbusChannelElementsDto mbusChannelElements, final ChannelElementValuesDto channelElementValues) { if (mbusChannelElements.hasPrimaryAddress() && mbusChannelElements.getPrimaryAddress() > 0) { return wiredMbusMatches(mbusChannelElements, channelElementValues); } return mbusShortIdMatches(mbusChannelElements, channelElementValues); } private  FindMatchingChannelHelper(); static boolean matches(final MbusChannelElementsDto mbusChannelElements,
            final ChannelElementValuesDto channelElementValues); static boolean matchesPartially(final MbusChannelElementsDto mbusChannelElements,
            final ChannelElementValuesDto channelElementValues); static ChannelElementValuesDto bestMatch(final MbusChannelElementsDto mbusChannelElements,
            final List<ChannelElementValuesDto> channelElementValuesList);  }