Skip to content

Commit

Permalink
updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalosh committed Dec 18, 2018
1 parent de0a5a9 commit 23c3c92
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</developers>

<properties>
<postmark.version>1.1.8</postmark.version>
<postmark.version>1.1.9</postmark.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<jackson.minimum.version>2.9.2</jackson.minimum.version>
Expand Down
33 changes: 33 additions & 0 deletions src/test/java/integration/TemplatePushTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package integration;

import base.BaseTest;
import com.wildbit.java.postmark.client.AccountApiClient;
import com.wildbit.java.postmark.client.ApiClient;
import com.wildbit.java.postmark.client.Parameters;
import com.wildbit.java.postmark.client.data.model.bounces.Bounce;
import com.wildbit.java.postmark.client.data.model.bounces.BounceDump;
import com.wildbit.java.postmark.client.data.model.bounces.Bounces;
import com.wildbit.java.postmark.client.data.model.bounces.DeliveryStats;
import com.wildbit.java.postmark.client.data.model.templates.*;
import com.wildbit.java.postmark.client.exception.InvalidMessageException;
import com.wildbit.java.postmark.client.exception.PostmarkException;
import org.junit.jupiter.api.Test;



import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import static org.junit.jupiter.api.Assertions.*;

public class TemplatePushTest extends BaseTest {
AccountApiClient client = getDefaultAccountApiClient();

@Test
void invalidSourceDestinationTest() throws PostmarkException, IOException {
TemplatesPushRequest pushRequest = new TemplatesPushRequest(1,1, true);
Throwable exception = assertThrows(InvalidMessageException.class, () -> client.pushTemplates(pushRequest));
assertEquals(exception.getMessage(), "The source and destination servers were not found.");
}
}
1 change: 0 additions & 1 deletion src/test/java/integration/TemplateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ void deleteTemplate() throws PostmarkException, IOException {
void list() throws PostmarkException, IOException {
Templates templates = client.getTemplates(Parameters.init().build("offset", 0).build("count", 4));
assertNotNull(templates.getTotalCount());

}

}

0 comments on commit 23c3c92

Please sign in to comment.