You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/03/03 22:45:45 UTC
[2/2] groovy git commit: add GroovyTestJavadocAssertionTest and
enable testing of some groovy-test javadoc examples
add GroovyTestJavadocAssertionTest and enable testing of some groovy-test javadoc examples
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/b050b8be
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/b050b8be
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/b050b8be
Branch: refs/heads/master
Commit: b050b8be775ef71ec49d452b7be993b540a7e5d6
Parents: 3a8d2e6
Author: pascalschumacher <pa...@gmx.net>
Authored: Thu Mar 3 22:45:29 2016 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Thu Mar 3 22:45:29 2016 +0100
----------------------------------------------------------------------
.../groovy/mock/interceptor/MockFor.groovy | 8 +++---
.../groovy/mock/interceptor/StubFor.groovy | 2 +-
.../test/GroovyTestJavadocAssertionTest.groovy | 27 ++++++++++++++++++++
3 files changed, 32 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/b050b8be/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/MockFor.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/MockFor.groovy b/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/MockFor.groovy
index f5bda34..fae9f09 100644
--- a/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/MockFor.groovy
+++ b/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/MockFor.groovy
@@ -36,7 +36,7 @@ import java.util.regex.Pattern
* automatically ends with a verify().
*
* Typical usage is as follows:
- * <pre>
+ * <pre class="groovyTestCase">
* import groovy.mock.interceptor.MockFor
*
* class Person {
@@ -100,7 +100,7 @@ class MockFor {
* The optional <code>interceptConstruction</code> flag allows mocking of
* constructor calls. These are represented in the demand specification
* using the class name as this example shows:
- * <pre>
+ * <pre class="groovyTestCase">
* import groovy.mock.interceptor.MockFor
* class Person {
* String first, last
@@ -160,7 +160,7 @@ class MockFor {
* The <code>filter</code> object is invoked using the normal Groovy <code>isCase()</code> semantics.
*
* Here are some examples:
- * <pre>
+ * <pre class="groovyTestCase">
* import groovy.mock.interceptor.MockFor
* class Person {
* String first, last
@@ -212,7 +212,7 @@ class MockFor {
* will be instantiated for the original class.
*
* Typical example:
- * <pre>
+ * <pre class="groovyTestCase">
* import groovy.mock.interceptor.MockFor
*
* class Person {
http://git-wip-us.apache.org/repos/asf/groovy/blob/b050b8be/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/StubFor.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/StubFor.groovy b/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/StubFor.groovy
index e16cf3b..deb069f 100644
--- a/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/StubFor.groovy
+++ b/subprojects/groovy-test/src/main/groovy/groovy/mock/interceptor/StubFor.groovy
@@ -35,7 +35,7 @@ import java.util.regex.Pattern
* is left to the user.
*
* Typical usage is as follows:
- * <pre>
+ * <<pre class="groovyTestCase">
* import groovy.mock.interceptor.StubFor
*
* class Person {
http://git-wip-us.apache.org/repos/asf/groovy/blob/b050b8be/subprojects/groovy-test/src/test/groovy/groovy/test/GroovyTestJavadocAssertionTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-test/src/test/groovy/groovy/test/GroovyTestJavadocAssertionTest.groovy b/subprojects/groovy-test/src/test/groovy/groovy/test/GroovyTestJavadocAssertionTest.groovy
new file mode 100644
index 0000000..204718f
--- /dev/null
+++ b/subprojects/groovy-test/src/test/groovy/groovy/test/GroovyTestJavadocAssertionTest.groovy
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package groovy.test
+
+import org.junit.runners.Suite
+import org.junit.runner.RunWith
+
+@RunWith(Suite)
+@Suite.SuiteClasses(JavadocAssertionTestSuite)
+class GroovyTestJavadocAssertionTest {
+}