Skip to content

Commit

Permalink
chore: prepare release (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmamo authored Oct 20, 2024
1 parent f2feed8 commit 5fe3fc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ updates:
open-pull-requests-limit: 10
reviewers:
- tfennelly
- claudemamo
- cjmamo
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
reviewers:
- tfennelly
- claudemamo
- cjmamo
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.smooks.cartridges</groupId>
<artifactId>smooks-calc-cartridge</artifactId>
<version>2.0.0-RC4</version>
<version>2.0.0</version>

<name>Smooks Calculation Cartridge</name>
<url>https://www.smooks.org</url>
Expand Down Expand Up @@ -40,7 +40,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gpg.skip>true</gpg.skip>
<smooks.version>2.0.0-RC4</smooks.version>
<smooks.version>2.0.0</smooks.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@

import org.smooks.Smooks;
import org.smooks.api.ExecutionContext;
import org.smooks.io.payload.JavaResult;
import org.smooks.io.sink.JavaSink;
import org.smooks.io.source.StreamSource;
import org.testng.annotations.Test;
import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.stream.StreamSource;
import java.io.IOException;

import static org.testng.AssertJUnit.assertEquals;
Expand All @@ -69,17 +69,17 @@ public void test_before_full_extended_config() throws ParserConfigurationExcepti

ExecutionContext executionContext = smooks.createExecutionContext();

JavaResult result = new JavaResult();
JavaSink sink = new JavaSink();

smooks.filterSource(executionContext, new StreamSource(getClass().getResourceAsStream("/test.xml")), result);
smooks.filterSource(executionContext, new StreamSource(getClass().getResourceAsStream("/test.xml")), sink);

Long a = (Long) result.getBean("a");
Long a = (Long) sink.getBean("a");

assertNotNull(a);

assertEquals(21, a.longValue());

Long b = (Long) result.getBean("b");
Long b = (Long) sink.getBean("b");

assertNotNull(b);

Expand Down

0 comments on commit 5fe3fc3

Please sign in to comment.