File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
src/test/java/de/danielbechler/diff/node Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Daniel Bechler
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package de.danielbechler.diff.node
18+
19+ import spock.lang.Specification
20+
21+ class VisitTest extends Specification {
22+
23+ def " Stop" () {
24+ given :
25+ final visit = new Visit ()
26+ expect :
27+ ! visit. stopped
28+ when :
29+ visit. stop()
30+ then :
31+ visit. stopped
32+ }
33+
34+ def " DontGoDeeper" () {
35+ given :
36+ final visit = new Visit ()
37+ expect :
38+ visit. allowedToGoDeeper
39+ when :
40+ visit. dontGoDeeper()
41+ then :
42+ ! visit. allowedToGoDeeper
43+ }
44+ }
You can’t perform that action at this time.
0 commit comments