Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix javadoc errors and add javadoc to Travis
  • Loading branch information
robyj authored and Andrew Woods committed Jun 3, 2015
1 parent 170c289 commit eb8b054
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -4,6 +4,12 @@ jdk:
before_install:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS=-Xmx1024m"

script:
- mvn install -B -V
- mvn javadoc:jar
- mvn javadoc:test-aggregate

notifications:
irc: "irc.freenode.org#fcrepo"
email:
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -6,6 +6,7 @@ with [Fedora4](http://fcrepo.org). These applications use

[![Build Status](https://travis-ci.org/fcrepo4-labs/fcrepo-camel-toolbox.png?branch=master)](https://travis-ci.org/fcrepo4-labs/fcrepo-camel-toolkit)


## Applications

Each of these applications are available as OSGi bundles and can be deployed
Expand Down
Expand Up @@ -38,6 +38,9 @@ public class TestUtils {

/**
* Format a Sparql-update for the provided subject.
*
* @param uri string containing sparql-update
* @return string containing formatted sparql-update
*/
public static String sparqlUpdate(final String uri) {
final String rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
Expand All @@ -54,6 +57,10 @@ public static String sparqlUpdate(final String uri) {

/**
* Get data from the provided URL
*
* @param url string containing url
* @return InputStream containing data
* @throws Exception
*/
public static InputStream httpGet(final String url) throws Exception {
final CloseableHttpClient httpClient = HttpClients.createDefault();
Expand All @@ -63,6 +70,11 @@ public static InputStream httpGet(final String url) throws Exception {

/**
* Post data to the provided URL
*
* @param url string containing URL
* @param content string containing data
* @param mimeType string containing MIMe type of content
* @throws Exception
*/
public static void httpPost(final String url, final String content, final String mimeType) throws Exception {
final CloseableHttpClient httpClient = HttpClients.createDefault();
Expand All @@ -74,6 +86,10 @@ public static void httpPost(final String url, final String content, final String

/**
* Populate fuseki with some triples for the given subject
*
* @param fusekiBase string containing base uri
* @param subject string containing subject
* @throws Exception
*/
public static void populateFuseki(final String fusekiBase, final String subject) throws Exception {
httpPost(fusekiBase + "/update",
Expand All @@ -83,6 +99,11 @@ public static void populateFuseki(final String fusekiBase, final String subject)

/**
* get a count of the items in the triplestore, corresponding to a given subject.
*
* @param fusekiBase string containing fueski base uri
* @param subject string containing subject
* @return count of triplestore items for given subject
* @throws Exception
*/
public static Callable<Integer> triplestoreCount(final String fusekiBase, final String subject) throws Exception {
final String query = "SELECT (COUNT(*) AS ?n) WHERE { <" + subject + "> ?o ?p . }";
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Expand Up @@ -63,6 +63,7 @@
<dependency.plugin.version>2.10</dependency.plugin.version>
<failsafe.plugin.version>2.18.1</failsafe.plugin.version>
<jacoco.plugin.version>0.7.2.201409121644</jacoco.plugin.version>
<javadoc.plugin.version>2.10.3</javadoc.plugin.version>
<jetty.plugin.version>9.2.6.v20141205</jetty.plugin.version>
<license.plugin.version>2.9</license.plugin.version>
<resources.plugin.version>2.6</resources.plugin.version>
Expand Down Expand Up @@ -715,6 +716,12 @@
<artifactId>maven-site-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc.plugin.version}</version>
</plugin>

</plugins>
</build>

Expand All @@ -726,7 +733,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<version>${javadoc.plugin.version}</version>
<configuration>
<linksource>true</linksource>
</configuration>
Expand Down

0 comments on commit eb8b054

Please sign in to comment.