AbstractResource extends View { public String getArtifactPromtotionResponseMessage() throws IOException { return JsonUtils.serialize(DataModelFactory.createArtifactPromotionStatus(false, "")); } protected  AbstractResource(final RepositoryHandler repoHandler, final String templateName, final GrapesServerConfig dmConfig); @GET @Produces(MediaType.TEXT_HTML) Response getDocumentation(); String getProgramVersion(); String getIssueTrackerUrl(); String getOnlineDocumentation(); String getOrganizationJsonModel(); String getModuleJsonModel(); String getArtifactJsonModel(); String getArtifactPromtotionResponseMessage(); String getDependencyJsonModel(); String getLicenseJsonModel(); String getPromotionDetailsJsonModel(); String getSearchJsonModel(); String getScopes(); String getDeliveryJsonModel(); String[] getReportSamples(); int getAvailableReportsCount(); List<String> externalValidatedTypes(); static final String TWO_PLACES; }
@Test public void checkArtifactPromtotionResponseMessage(){ final FakeResource resource = new FakeResource(); Exception exception = null; try { final String inputMessage = JsonUtils.serialize(resource.getArtifactPromtotionResponseMessage()); assertNotNull(inputMessage); }catch (Exception e){ exception = e; } assertNull(exception); }