@Test public void getFieldsOverride() throws ComponentLookupException, XWikiException { BaseObject o = Mockito.mock(BaseObject.class); List<String> fields = new LinkedList<>(); fields.add("external_id"); fields.add("gender"); fields.add("name"); fields.add("phenotype"); Mockito.when(o.getListValue("fields")).thenReturn(fields); StudyConfiguration result = new StudyConfiguration(o); Assert.assertSame(fields, result.getFieldsOverride()); }
@SuppressWarnings("unchecked") public List<String> getFieldsOverride() { return this.configuration.getListValue("fields"); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getFieldsOverride() { return this.configuration.getListValue("fields"); } }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getFieldsOverride() { return this.configuration.getListValue("fields"); } StudyConfiguration(BaseObject configuration); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getFieldsOverride() { return this.configuration.getListValue("fields"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping(); }
StudyConfiguration { @SuppressWarnings("unchecked") public List<String> getFieldsOverride() { return this.configuration.getListValue("fields"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping();  }