@Test public void testGetShortStudyAbstract() throws Exception { int maxLength = 100; String testString = getStringOfLength(maxLength); Assert.assertEquals(maxLength, testString.length()); study.setStudyAbstract(testString); Assert.assertEquals(testString, study.getShortStudyAbstract(maxLength)); testString = getStringOfLength(90) + ' ' + getStringOfLength(30); Assert.assertEquals(121, testString.length()); study.setStudyAbstract(testString); Assert.assertEquals(90, study.getShortStudyAbstract(maxLength).length()); Assert.assertEquals(getStringOfLength(90), study.getShortStudyAbstract(maxLength)); }
@Transient public String getShortStudyAbstract() { return getShortStudyAbstract(190); }
Study implements SecureEntity, BiomeEntity { @Transient public String getShortStudyAbstract() { return getShortStudyAbstract(190); } }
Study implements SecureEntity, BiomeEntity { @Transient public String getShortStudyAbstract() { return getShortStudyAbstract(190); } Study(); }
Study implements SecureEntity, BiomeEntity { @Transient public String getShortStudyAbstract() { return getShortStudyAbstract(190); } Study(); long getId(); void setId(long id); String getStudyId(); void setStudyId(String studyId); String getStudyName(); void setStudyName(String studyName); String getProjectId(); void setProjectId(String projectId); String getSubmissionAccountId(); void setSubmissionAccountId(String submissionAccountId); String getStudyStatusAsString(); void setStudyStatusAsString(String enumType); StudyStatus getStudyStatus(); void setStudyStatus(StudyStatus studyStatus); Date getPublicReleaseDate(); void setPublicReleaseDate(Date publicReleaseDate); Set<Publication> getPublications(); void setPublications(Set<Publication> publications); void addPublication(Publication publication); Set<Sample> getSamples(); void setSamples(Set<Sample> samples); void addSample(Sample sample); String getCentreName(); void setCentreName(String centreName); String getStudyAbstract(); @Transient String getShortStudyAbstract(); void setStudyAbstract(String studyAbstract); String getExperimentalFactor(); void setExperimentalFactor(String experimentalFactor); @Override @Transient String getSecureEntityId(); boolean isPublic(); Integer isPublicInt(); void setPublic(Integer isPublicInt); String getPrivacy(); Date getLastMetadataReceived(); String getFormattedLastReceived(); void setLastMetadataReceived(Date lastMetadataReceived); DataOrigination getDataOrigination(); void setDataOrigination(DataOrigination dataOrigination); String getAuthorName(); void setAuthorName(String authorName); String getAuthorEmailAddress(); void setAuthorEmailAddress(String authorEmailAddress); String getResultDirectory(); void setResultDirectory(String resultDirectory); Long getSampleCount(); void setSampleCount(Long sampleCount); Biome getBiome(); void setBiome(Biome biome); String getBiomeIconCSSClass(); void setBiomeIconCSSClass(String biomeIconCSSClass); String getBiomeIconTitle(); void setBiomeIconTitle(String biomeIconTitle); Date getFirstCreated(); void setFirstCreated(Date firstCreated); @Override boolean equals(Object o); @Override int hashCode(); }
Study implements SecureEntity, BiomeEntity { @Transient public String getShortStudyAbstract() { return getShortStudyAbstract(190); } Study(); long getId(); void setId(long id); String getStudyId(); void setStudyId(String studyId); String getStudyName(); void setStudyName(String studyName); String getProjectId(); void setProjectId(String projectId); String getSubmissionAccountId(); void setSubmissionAccountId(String submissionAccountId); String getStudyStatusAsString(); void setStudyStatusAsString(String enumType); StudyStatus getStudyStatus(); void setStudyStatus(StudyStatus studyStatus); Date getPublicReleaseDate(); void setPublicReleaseDate(Date publicReleaseDate); Set<Publication> getPublications(); void setPublications(Set<Publication> publications); void addPublication(Publication publication); Set<Sample> getSamples(); void setSamples(Set<Sample> samples); void addSample(Sample sample); String getCentreName(); void setCentreName(String centreName); String getStudyAbstract(); @Transient String getShortStudyAbstract(); void setStudyAbstract(String studyAbstract); String getExperimentalFactor(); void setExperimentalFactor(String experimentalFactor); @Override @Transient String getSecureEntityId(); boolean isPublic(); Integer isPublicInt(); void setPublic(Integer isPublicInt); String getPrivacy(); Date getLastMetadataReceived(); String getFormattedLastReceived(); void setLastMetadataReceived(Date lastMetadataReceived); DataOrigination getDataOrigination(); void setDataOrigination(DataOrigination dataOrigination); String getAuthorName(); void setAuthorName(String authorName); String getAuthorEmailAddress(); void setAuthorEmailAddress(String authorEmailAddress); String getResultDirectory(); void setResultDirectory(String resultDirectory); Long getSampleCount(); void setSampleCount(Long sampleCount); Biome getBiome(); void setBiome(Biome biome); String getBiomeIconCSSClass(); void setBiomeIconCSSClass(String biomeIconCSSClass); String getBiomeIconTitle(); void setBiomeIconTitle(String biomeIconTitle); Date getFirstCreated(); void setFirstCreated(Date firstCreated); @Override boolean equals(Object o); @Override int hashCode();  }