Skip to content

Commit 7d74c24

Browse files
committed
Ignore tests
1 parent 2383edf commit 7d74c24

File tree

6 files changed

+31
-25
lines changed

6 files changed

+31
-25
lines changed

src/test/java/com/telstra/messaging/AuthenticationApiTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import com.telstra.*;
1616
import org.junit.Before;
17+
import org.junit.Ignore;
1718
import org.junit.Test;
1819
import static org.junit.Assert.assertNotNull;
1920

@@ -24,7 +25,7 @@
2425
public class AuthenticationApiTest {
2526
private ApiClient defaultClient;
2627

27-
@Before
28+
//@Before
2829
public void setUp() {
2930

3031
defaultClient = new ApiClient();
@@ -44,7 +45,7 @@ public void setUp() {
4445
*
4546
*/
4647

47-
@Test
48+
@Ignore
4849
public void authTokenTest() {
4950

5051
AuthenticationApi authenticationApi = new AuthenticationApi(defaultClient);

src/test/java/com/telstra/messaging/FreeTrialNumbersApiTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
package com.telstra.messaging;
1414
import com.telstra.*;
1515
import org.junit.Before;
16+
import org.junit.Ignore;
1617
import org.junit.Test;
1718
import static com.telstra.messaging.AuthenticationApi.getAuthToken;
1819
import static org.junit.Assert.*;
@@ -25,7 +26,7 @@
2526
public class FreeTrialNumbersApiTest {
2627
private ApiClient defaultClient;
2728

28-
@Before
29+
//@Before
2930
public void setUp() {
3031

3132
defaultClient = new ApiClient();
@@ -44,7 +45,7 @@ public void setUp() {
4445
* create free trial number list
4546
* Your Free Trial Numbers are the 10 recipient mobile numbers that you can message during the Free Trial. The first five numbers you send an SMS/MMS to will automatically be added to your Free Trial Numbers list. After that, you can use this endpoint to register another five. Alternatively, you can use this endpoint to register all 10 numbers. Use this endpoint to register a Free Trial Number to your account. To test out all the features that the trial has to offer, we recommend registering your own mobile number to your Free Trial Numbers list. Note that you can only message mobile numbers that have been added to your Free Trial list and once registered, a Free Trial Number cannot be removed or replaced.
4647
*/
47-
@Test
48+
@Ignore
4849
public void createTrialNumbersTest() {
4950

5051
try{
@@ -74,7 +75,7 @@ public void createTrialNumbersTest() {
7475
* Use this endpoint to fetch the Free Trial Number(s) currently assigned to your account. These are the mobile numbers that you can message during the Free Trial. If you're using a paid plan, there's no limit to the number of recipients that you can message, so you don't need to register Free Trial Numbers.
7576
*
7677
*/
77-
@Test
78+
@Ignore
7879
public void getTrialNumbersTest() {
7980

8081
try{

src/test/java/com/telstra/messaging/HealthCheckApiTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import com.telstra.*;
1616
import org.junit.Before;
17+
import org.junit.Ignore;
1718
import org.junit.Test;
1819
import static com.telstra.messaging.AuthenticationApi.getAuthToken;
1920
import static org.junit.Assert.assertEquals;
@@ -26,7 +27,7 @@
2627
public class HealthCheckApiTest {
2728
private ApiClient defaultClient;
2829

29-
@Before
30+
//@Before
3031
public void setUp() {
3132

3233
defaultClient = new ApiClient();
@@ -47,7 +48,7 @@ public void setUp() {
4748
* Use this endpoint to check the operational status of the messaging service. A 200 OK response means the service is up. If you receive a 504 response, the service is temporarily down. Check the [API Live Status page]. to see if there's an active incident.
4849
*
4950
*/
50-
@Test
51+
@Ignore
5152
public void healthCheckTest() {
5253

5354
try{

src/test/java/com/telstra/messaging/MessagesApiTest.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.telstra.*;
1515
import java.util.UUID;
1616
import org.junit.Before;
17+
import org.junit.Ignore;
1718
import org.junit.Test;
1819
import java.util.ArrayList;
1920
import java.util.List;
@@ -29,7 +30,7 @@
2930
public class MessagesApiTest {
3031
private ApiClient defaultClient;
3132

32-
@Before
33+
//@Before
3334
public void setUp() {
3435

3536
defaultClient = new ApiClient();
@@ -49,7 +50,7 @@ public void setUp() {
4950
* Use this endpoint to delete a message that's been scheduled for sending, but hasn't yet sent.
5051
*
5152
*/
52-
@Test
53+
@Ignore
5354
public void deleteMessageByIdTest() {
5455

5556
try{
@@ -72,7 +73,7 @@ public void deleteMessageByIdTest() {
7273
* Use the **messageId** to fetch a message that's been sent from/to your account within the last 30 days.
7374
*
7475
*/
75-
@Test
76+
@Ignore
7677
public void getMessageByIdTest() {
7778
try{
7879
ApiClient apiClient = getAuthToken(defaultClient);
@@ -97,7 +98,7 @@ public void getMessageByIdTest() {
9798
* Fetch messages that have been sent from/to your account in the last 30 days.
9899
*
99100
*/
100-
@Test
101+
@Ignore
101102
public void getMessagesTest() {
102103

103104
try{
@@ -126,7 +127,7 @@ public void getMessagesTest() {
126127
* Send an SMS/MMS to a mobile number, or to multiple mobile numbers. Free Trial users can message to up to 10 unique recipient numbers for free. The first five recipients will be automatically added to your Free Trial Numbers list. Need more? Just use the POST /free-trial-numbers call to add another five.
127128
* if the Api call fails
128129
*/
129-
@Test
130+
@Ignore
130131
public void sendMessagesTest() {
131132

132133
try{
@@ -195,7 +196,7 @@ public void sendMessagesTest() {
195196
* Need to update a message that's scheduled for sending? You can change any of the below parameters, as long as the message hasn't been sent yet. This request body will override the original POST/ messages call.
196197
*
197198
*/
198-
@Test
199+
@Ignore
199200
public void updateMessageByIdTest() {
200201

201202
try{
@@ -264,7 +265,7 @@ public void updateMessageByIdTest() {
264265
* Use the **messageId** to update the tag(s) assigned to a message. You can use this endpoint any time, even after your message has been delivered.
265266
*
266267
*/
267-
@Test
268+
@Ignore
268269
public void updateMessageTagsTest() {
269270

270271
try{

src/test/java/com/telstra/messaging/ReportsApiTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.telstra.*;
1616
import java.util.UUID;
1717
import org.junit.Before;
18+
import org.junit.Ignore;
1819
import org.junit.Test;
1920
import static com.telstra.messaging.AuthenticationApi.getAuthToken;
2021
import static org.junit.Assert.assertNotNull;
@@ -28,7 +29,7 @@ public class ReportsApiTest {
2829

2930
private ApiClient defaultClient;
3031

31-
@Before
32+
//@Before
3233
public void setUp() {
3334

3435
defaultClient = new ApiClient();
@@ -48,7 +49,7 @@ public void setUp() {
4849
* Fetch a download link for a report generated with POST /reports/{reportId} using the **reportId** returned in the response. Once ready, your report will be available for download for one week.
4950
*
5051
*/
51-
@Test
52+
@Ignore
5253
public void getReportTest() {
5354

5455
try{
@@ -74,7 +75,7 @@ public void getReportTest() {
7475
* Fetch details of all reports recently generated for your account. Use it to check the status of a report, plus fetch the report ID, status, report type and expiry date.
7576
*
7677
*/
77-
@Test
78+
@Ignore
7879
public void getReportsTest() {
7980

8081
try{
@@ -98,7 +99,7 @@ public void getReportsTest() {
9899
* Request a CSV report of messages (both incoming and outgoing) that have been sent to/from your account within the last three months. You can request details for a specific timeframe, and filter your messages by tags, recipient number or Virtual Number. A 201 Created means your report has been queued for generation. Make a note of the reportId returned in the response. You'll need this to check the status of your report and fetch your download link with GET reports/{reportId}. If you supplied a reportCallbackUrl in the request we'll also notify it when your report is ready for download. Once your report is generated, it will be available for download for one week. The expiry date is returned in the response.
99100
*
100101
*/
101-
@Test
102+
@Ignore
102103
public void messagesReportTest() {
103104

104105
try{

src/test/java/com/telstra/messaging/VirtualNumbersApiTest.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import com.telstra.*;
1616
import org.junit.Before;
17+
import org.junit.Ignore;
1718
import org.junit.Test;
1819
import static com.telstra.messaging.AuthenticationApi.getAuthToken;
1920
import static org.junit.Assert.assertNotNull;
@@ -28,7 +29,7 @@ public class VirtualNumbersApiTest {
2829

2930
private ApiClient defaultClient;
3031

31-
@Before
32+
//@Before
3233
public void setUp() {
3334

3435
defaultClient = new ApiClient();
@@ -48,7 +49,7 @@ public void setUp() {
4849
* When a recipient receives your message, you can choose whether they'll see a privateNumber, Virtual Number or senderName (paid plans only) in the **from** field. If you want to use a Virtual Number, use this endpoint to assign one. Free Trial users can assign one Virtual Number, and those on a paid plan can assign up to 100. Virtual Numbers that have not sent a message in 30 days (Free Trial) or sent/received a message in 18 months (paid plans) will be automatically unassigned from your account. You can check the **lastUse** date of your Virtual Number at any time using GET /virtual-numbers/{virtual-number}. Note that Virtual Numbers used in v2 of the Messaging API cannot be used to send messages in v3. Please assign a new Virtual Number instead.
4950
*
5051
*/
51-
@Test
52+
@Ignore
5253
public void assignNumberTest() {
5354
try{
5455

@@ -85,7 +86,7 @@ public void assignNumberTest() {
8586
* Use **virtual-number** to remove a Virtual Number that's been assigned to your account.
8687
*
8788
*/
88-
@Test
89+
@Ignore
8990
public void deleteNumberTest() {
9091
try{
9192

@@ -108,7 +109,7 @@ public void deleteNumberTest() {
108109
* Use this endpoint to fetch all Virtual Numbers currently assigned to your account.
109110
*
110111
*/
111-
@Test
112+
@Ignore
112113
public void getNumbersTest() {
113114

114115
try{
@@ -136,7 +137,7 @@ public void getNumbersTest() {
136137
* Use this endpoint to fetch any mobile number(s) that have opted out of receiving messages from a Virtual Number assigned to your account. Recipients can opt out at any time by sending a message with industry standard keywords such as STOP, STOPALL, UNSUBSCRIBE, QUIT, END and CANCEL.
137138
*
138139
*/
139-
@Test
140+
@Ignore
140141
public void getRecipientOptoutsTest() {
141142

142143

@@ -165,7 +166,7 @@ public void getRecipientOptoutsTest() {
165166
* Fetch the tags, replyCallbackUrl and lastUse date for a Virtual Number.
166167
*
167168
*/
168-
@Test
169+
@Ignore
169170
public void getVirtualNumberTest() {
170171

171172
try{
@@ -192,7 +193,7 @@ public void getVirtualNumberTest() {
192193
* if the Api call fails
193194
*/
194195

195-
@Test
196+
@Ignore
196197
public void updateNumberTest() {
197198

198199
try{

0 commit comments

Comments
 (0)