@Test public void shouldReturnNullIfNRisTrue() throws Exception { Reading reading = new Reading("", true); assertThat(reading.getEffectiveValue(), is(nullValue())); }
public String getEffectiveValue() { return (notRecorded == null || !notRecorded) ? value : null; }
Reading { public String getEffectiveValue() { return (notRecorded == null || !notRecorded) ? value : null; } }
Reading { public String getEffectiveValue() { return (notRecorded == null || !notRecorded) ? value : null; } Reading(String value, Boolean notRecorded); }
Reading { public String getEffectiveValue() { return (notRecorded == null || !notRecorded) ? value : null; } Reading(String value, Boolean notRecorded); String getEffectiveValue(); Integer parsePositiveInt(); Integer parseInt(); Float parseFloat(); }
Reading { public String getEffectiveValue() { return (notRecorded == null || !notRecorded) ? value : null; } Reading(String value, Boolean notRecorded); String getEffectiveValue(); Integer parsePositiveInt(); Integer parseInt(); Float parseFloat();  }