Skip to content

Commit

Permalink
Merge pull request #68 from europeana/EA-3842-exception-handling-and_…
Browse files Browse the repository at this point in the history
…logging

add modules for code coverage computation in test module
  • Loading branch information
gsergiu authored Jun 17, 2024
2 parents 8455200 + f6409a3 commit 1cca450
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ private String createTranslationBodyWithDocument(String text, String sourceLang,
String targetLang, String externalReference) throws JSONException {
String base64EncodedText = Base64.encodeBase64String(text.getBytes(StandardCharsets.UTF_8));
JSONObject jsonBody = new JSONObject().put("priority", 0)
// .put("requesterCallback", getTranslatioCallbackUrl())
// .put("errorCallback", getTranslationErrorCallbackUrl())
.put("requesterCallback", getTranslatioCallbackUrl())
.put("errorCallback", getTranslationErrorCallbackUrl())
.put("externalReference", externalReference)
.put("callerInformation",
new JSONObject().put("application", credentialUsername).put("username",
Expand Down
32 changes: 32 additions & 0 deletions translation-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,43 @@
</properties>

<dependencies>
<!-- add here all modules for which the code coverage needs to be computed -->
<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-web</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-service-common</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-service-google</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-service-pangeanic</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-service-tika</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>eu.europeana.api</groupId>
<artifactId>translation-service-etranslation</artifactId>
<version>0.1.3-SNAPSHOT</version>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 1cca450

Please sign in to comment.