@Test public void getPhenotypeMapping() throws ComponentLookupException, XWikiException { BaseObject o = Mockito.mock(BaseObject.class); Mockito.when(o.getStringValue("mapping")).thenReturn("PhenoTips.XPhenotypeMapping"); StudyConfiguration result = new StudyConfiguration(o); Assert.assertEquals("PhenoTips.XPhenotypeMapping", result.getPhenotypeMapping()); }
public String getPhenotypeMapping() { return this.configuration.getStringValue("mapping"); }
StudyConfiguration { public String getPhenotypeMapping() { return this.configuration.getStringValue("mapping"); } }
StudyConfiguration { public String getPhenotypeMapping() { return this.configuration.getStringValue("mapping"); } StudyConfiguration(BaseObject configuration); }
StudyConfiguration { public String getPhenotypeMapping() { return this.configuration.getStringValue("mapping"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping(); }
StudyConfiguration { public String getPhenotypeMapping() { return this.configuration.getStringValue("mapping"); } StudyConfiguration(BaseObject configuration); @SuppressWarnings("unchecked") List<String> getSectionsOverride(); @SuppressWarnings("unchecked") List<String> getFieldsOverride(); String getPhenotypeMapping();  }