@Test public void getSectionsOverride() throws ComponentLookupException, XWikiException { BaseObject o = Mockito.mock(BaseObject.class); List<String> sections = Collections.singletonList("patient_info"); Mockito.when(o.getListValue("sections")).thenReturn(sections); StudyConfiguration result = new StudyConfiguration(o); Assert.assertSame(sections, result.getSectionsOverride()); }
@SuppressWarnings("unchecked") public List<String> getSectionsOverride() { return this.configuration.getListValue("sections"); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getSectionsOverride() { return this.configuration.getListValue("sections"); } }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getSectionsOverride() { return this.configuration.getListValue("sections"); } StudyConfiguration(BaseObject configuration); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getSectionsOverride() { return this.configuration.getListValue("sections"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping(); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getSectionsOverride() { return this.configuration.getListValue("sections"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping();  }