@Test public void process_givenLocatTimeParametersEntry() { entry.getContent().setLocalTimeParameters(new TimeConfiguration()); EntryType entryType = processor.process(entry); assertThat(entryType.getContent().getResource().getId(), is(notNullValue())); }
@Test public void process_linksUsagePointAndMeterReading() { entry.getContent().setReadingType(new ReadingType()); EntryType entryType = processor.process(entry); assertThat(entryType.getContent().getResource().getId(), is(notNullValue())); }
@Test public void process_givenUsagePointEntry() { UsagePoint usagePoint = new UsagePoint(); usagePoint.setServiceCategory(new ServiceCategory(ServiceCategory.ELECTRICITY_SERVICE)); entry.getContent().setUsagePoint(usagePoint); EntryType entryType = processor.process(entry); assertThat(entryType.getContent().getResource().getId(), is(notNullValue())); }