Skip to content

Commit

Permalink
XIVY-12667 Upgraded buildplugin to 10.0.14 enabled and configured
Browse files Browse the repository at this point in the history
webtests
  • Loading branch information
ivy-fhe committed Nov 2, 2023
1 parent 34f2c74 commit 79d0834
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion threema-connector-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>10.0.6</version>
<version>10.0.14</version>
<extensions>true</extensions>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions threema-connector-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<dependency>
<groupId>com.axonivy.ivy.test</groupId>
<artifactId>unit-tester</artifactId>
<version>10.0.0</version>
<version>10.0.14</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -36,7 +36,7 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>10.0.6</version>
<version>10.0.14</version>
<extensions>true</extensions>
</plugin>
</plugins>
Expand Down
10 changes: 8 additions & 2 deletions threema-connector-webtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@
<version>${project.version}</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>com.axonivy.connector.threema</groupId>
<artifactId>threema-connector-test</artifactId>
<version>${project.version}</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>com.axonivy.ivy.webtest</groupId>
<artifactId>web-tester</artifactId>
<version>10.0.0</version>
<version>10.0.14</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -25,7 +31,7 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>10.0.6</version>
<version>10.0.14</version>
<extensions>true</extensions>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@
import static com.codeborne.selenide.Selenide.open;
import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;

import com.axonivy.ivy.webtest.IvyWebTest;
import com.axonivy.ivy.webtest.engine.EngineUrl;
import com.axonivy.ivy.webtest.engine.WebAppFixture;
import com.codeborne.selenide.ElementsCollection;

import ch.ivyteam.threema.mocks.ThreemaServiceMock;

@IvyWebTest
public class MessageMultipleRecipientsTest {

@Test
@Disabled
public void sendMessage() {
public void sendMessage(WebAppFixture fixture) {
String mockUrl = ThreemaServiceMock.URI.replaceAll("\\{", "%7B").replaceAll("\\}", "%7D").replaceAll("/", "%2F");
fixture.config("RestClients.ThreemaGateway.Url", mockUrl);
open(EngineUrl.createProcessUrl("threema-connector-demo/18B8EEA3B9A84FAE/SendMessageToMultipleRecipients.ivp"));
String message = "Hello World";
String recipients = "validId\ninvalidId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
import static com.codeborne.selenide.Selenide.open;
import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;

import com.axonivy.ivy.webtest.IvyWebTest;
import com.axonivy.ivy.webtest.engine.EngineUrl;
import com.axonivy.ivy.webtest.engine.WebAppFixture;
import com.axonivy.ivy.webtest.primeui.PrimeUi;
import com.codeborne.selenide.ElementsCollection;

import ch.ivyteam.threema.mocks.ThreemaServiceMock;

@IvyWebTest
public class MessageSingleRecipientTest {

@Test
@Disabled
public void sendMessage() {
public void sendMessage(WebAppFixture fixture) {
String mockUrl = ThreemaServiceMock.URI.replaceAll("\\{", "%7B").replaceAll("\\}", "%7D").replaceAll("/", "%2F");
fixture.config("RestClients.ThreemaGateway.Url", mockUrl);
open(EngineUrl.createProcessUrl("threema-connector-demo/18B8EEA3B9A84FAE/SendMessageToSingleRecipient.ivp"));
String message = "Hello World";
String validId = "validId";
Expand Down
2 changes: 1 addition & 1 deletion threema-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>10.0.6</version>
<version>10.0.14</version>
<extensions>true</extensions>
</plugin>
<plugin>
Expand Down

0 comments on commit 79d0834

Please sign in to comment.