Skip to content

Commit

Permalink
Merge pull request #197 from DavidWhitlock/issue-175-javadoc-for-all-…
Browse files Browse the repository at this point in the history
…visibility

Address issue #175 so that when generating the Grader javadocs for projects, include class members with all visibilities. Also, add integration tests that generate and verify the Grader javadoc.
  • Loading branch information
DavidWhitlock authored Jun 25, 2017
2 parents 867b0fb + 2928338 commit 33cc7b5
Show file tree
Hide file tree
Showing 50 changed files with 300 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gwt-parent/gwt-originals-parent/airline-gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -198,6 +201,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions gwt-parent/gwt-originals-parent/apptbook-gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -199,6 +202,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions gwt-parent/gwt-originals-parent/phonebill-gwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -198,6 +201,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -141,6 +144,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "The main class for the CS410J airline Project"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -197,6 +200,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A basic GWT class that makes sure that we can send an airline back"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -202,6 +205,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A helper class for accessing the rest client."
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package projects.javadoc

File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "The main class for the CS410J appointment book Project"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -211,6 +214,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A basic GWT class that makes sure that we can send an appointment book"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -202,6 +205,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A helper class for accessing the rest client"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -136,6 +139,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "The main class for the CS410J Phone Bill Project"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -198,6 +201,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A basic GWT class that makes sure that we can send an Phone Bill back"
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
<profiles>
<profile>
<id>grader</id>
<activation>
<activeByDefault>${grader}</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -203,6 +206,7 @@
<version>Summer2017</version>
</docletArtifact>
<useStandardDocletOptions>false</useStandardDocletOptions>
<show>private</show>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package=it.pkg.javadoc
version=0.1-SNAPSHOT
groupId=javadoc.archetype.it
artifactId=javadoc
grader=true
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
javadoc:javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
File buildLog = new File(basedir, "project/javadoc/build.log");
if (!buildLog.isFile()) {
throw new FileNotFoundException("Couldn't find build log: " + buildLog)
}

String logText = buildLog.text

def expectedJavaDoc = "A helper class for accessing the rest client."
if (!logText.contains(expectedJavaDoc)) {
throw new IllegalStateException("Didn't find expected JavaDoc: " + expectedJavaDoc)
}
Loading

0 comments on commit 33cc7b5

Please sign in to comment.