@Test public void checkLicenseJsonModel(){ final FakeResource resource = new FakeResource(); Exception exception = null; try { final License license = JsonUtils.unserializeLicense(resource.getLicenseJsonModel()); assertNotNull(license); }catch (Exception e){ exception = e; } assertNull(exception); }
public String getLicenseJsonModel() throws IOException { return JsonUtils.serialize(DataModelFactory.createLicense("Apache 2", "The Apache Software License, Version 2.0", "", "(((.*)(Apache|apache|asf)(.*)(2)(.*))|(.*)(apache license|apache|Software Licenses))", "http: }
AbstractResource extends View { public String getLicenseJsonModel() throws IOException { return JsonUtils.serialize(DataModelFactory.createLicense("Apache 2", "The Apache Software License, Version 2.0", "", "(((.*)(Apache|apache|asf)(.*)(2)(.*))|(.*)(apache license|apache|Software Licenses))", "http: } }
AbstractResource extends View { public String getLicenseJsonModel() throws IOException { return JsonUtils.serialize(DataModelFactory.createLicense("Apache 2", "The Apache Software License, Version 2.0", "", "(((.*)(Apache|apache|asf)(.*)(2)(.*))|(.*)(apache license|apache|Software Licenses))", "http: } protected  AbstractResource(final RepositoryHandler repoHandler, final String templateName, final GrapesServerConfig dmConfig); }
AbstractResource extends View { public String getLicenseJsonModel() throws IOException { return JsonUtils.serialize(DataModelFactory.createLicense("Apache 2", "The Apache Software License, Version 2.0", "", "(((.*)(Apache|apache|asf)(.*)(2)(.*))|(.*)(apache license|apache|Software Licenses))", "http: } 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(); }
AbstractResource extends View { public String getLicenseJsonModel() throws IOException { return JsonUtils.serialize(DataModelFactory.createLicense("Apache 2", "The Apache Software License, Version 2.0", "", "(((.*)(Apache|apache|asf)(.*)(2)(.*))|(.*)(apache license|apache|Software Licenses))", "http: } 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; }