Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/dependencies #21

Merged
merged 3 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Include the following dependency in your project. Please replace the versions wi
Gradle:

```groovy
implementation 'io.testerra:xray-connector:2.4'
implementation 'io.testerra:xray-connector:2.5'
```

Maven:
Expand All @@ -56,7 +56,7 @@ Maven:
<dependency>
<groupId>io.testerra</groupId>
<artifactId>xray-connector</artifactId>
<version>2.4</version>
<version>2.5</version>
</dependency>
```

Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.3.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.3.1'

// Workaround for a ClassNotFoundException, see https://github.com/telekom/testerra-xray-connector/issues/8
implementation 'javax.activation:activation:1.1.1'

testImplementation 'io.testerra:driver-ui-desktop:' + testerraTestVersion
testImplementation 'io.testerra:report-ng:' + testerraTestVersion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@
import com.fasterxml.jackson.databind.SerializationFeature;
import eu.tsystems.mms.tic.testerra.plugins.xray.AbstractTest;
import eu.tsystems.mms.tic.testerra.plugins.xray.mapper.xray.XrayTestExecutionImport;
import org.testng.Assert;
import org.testng.annotations.Test;

import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Calendar;
import java.util.HashSet;
import javax.ws.rs.core.MediaType;
import javax.xml.bind.JAXBException;
import org.testng.Assert;
import org.testng.annotations.Test;

public class MarshalTest extends AbstractTest {


@Test
public void testMarshalTestToJson() throws JsonProcessingException {

Expand Down Expand Up @@ -100,7 +99,7 @@ public void testMarshalTestToJsonWithEvidence() throws JsonProcessingException {
}

@Test
public void testUnmarshalExampleToObject() throws JAXBException, URISyntaxException, IOException {
public void testUnmarshalExampleToObject() throws URISyntaxException, IOException {
final ObjectMapper objectMapper = new ObjectMapper();
final URL url = getClass().getResource("/example.json").toURI().toURL();
objectMapper.readValue(url, XrayTestExecutionImport.TestRun[].class);
Expand Down