コード例 #1
0
  @Test
  public void process_givenLocatTimeParametersEntry() {
    entry.getContent().setLocalTimeParameters(new TimeConfiguration());

    EntryType entryType = processor.process(entry);

    assertThat(entryType.getContent().getResource().getId(), is(notNullValue()));
  }
コード例 #2
0
  @Test
  public void process_linksUsagePointAndMeterReading() {
    entry.getContent().setReadingType(new ReadingType());

    EntryType entryType = processor.process(entry);

    assertThat(entryType.getContent().getResource().getId(), is(notNullValue()));
  }
コード例 #3
0
  @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()));
  }