Skip to content

Commit

Permalink
Get unit tests running again
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Oct 22, 2023
1 parent 9c5f1c1 commit 7fcf0eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions org.thymeleaf.extras.eclipse.contentassist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
<relativePath>../pom.xml</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class AttributeProcessorProposalGeneratorTests {
def html = '<p xmlns:th="http://www.thymeleaf.org" >Hi!</p>'
def document = DOMBuilder.newInstance().parseText(html)

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

0 comments on commit 7fcf0eb

Please sign in to comment.