Skip to content

Commit 7fcf0eb

Browse files
committed
Get unit tests running again
1 parent 9c5f1c1 commit 7fcf0eb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

org.thymeleaf.extras.eclipse.contentassist/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
<relativePath>../pom.xml</relativePath>
1818
</parent>
1919

20+
<dependencies>
21+
<dependency>
22+
<groupId>org.junit.jupiter</groupId>
23+
<artifactId>junit-jupiter-engine</artifactId>
24+
<version>5.9.2</version>
25+
<scope>test</scope>
26+
</dependency>
27+
</dependencies>
28+
2029
<build>
2130
<plugins>
2231
<plugin>

org.thymeleaf.extras.eclipse.contentassist/src/test/groovy/org/thymeleaf/extras/eclipse/autocomplete/generators/AttributeProcessorProposalGeneratorTests.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ class AttributeProcessorProposalGeneratorTests {
120120
def html = '<p xmlns:th="http://www.thymeleaf.org" >Hi!</p>'
121121
def document = DOMBuilder.newInstance().parseText(html)
122122

123-
def results = attributeProcessorProposalGenerator.generate(document.firstChild, mock(ITextRegion),
123+
// Have to use .getFirstChild() as isFirstChild is an internal method in the
124+
// Apache Xerces implementation of Document 🙃
125+
def results = attributeProcessorProposalGenerator.generate(document.getFirstChild(), mock(ITextRegion),
124126
mock(IStructuredDocumentRegion), createDocument(html), 39)
125127
assertEquals(
126128
[ 'plugin:test1', 'plugin:test2', 'data-plugin-test1', 'data-plugin-test2' ],

0 commit comments

Comments
 (0)