Skip to content

Commit b5b7745

Browse files
KenChoiKenChoi
authored andcommitted
fix test bug
1 parent 1af5ca9 commit b5b7745

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
<version>9</version>
3232
</parent>
3333

34-
<scm>
35-
<url>https://github.com/jpush/jpush-api-java-client</url>
36-
<connection>scm:git:[email protected]:jpush/jpush-api-java-client.git</connection>
37-
<developerConnection>scm:git:[email protected]:jpush/jpush-api-java-client.git</developerConnection>
38-
<tag>v3.2.11</tag>
39-
</scm>
40-
4134
<dependencies>
4235
<dependency>
4336
<groupId>cn.jpush.api</groupId>
@@ -236,4 +229,10 @@
236229
</plugins>
237230
</reporting>
238231

232+
233+
<scm>
234+
<connection>scm:svn:http://svn.sonatype.org/spice/tags/v3.2.12</connection>
235+
<developerConnection>scm:svn:https://svn.sonatype.org/spice/tags/v3.2.12</developerConnection>
236+
<url>http://svn.sonatype.org/spice/tags/v3.2.12</url>
237+
</scm>
239238
</project>

src/test/java/cn/jpush/api/schedule/ScheduleClientTest.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import cn.jpush.api.push.model.PushPayload;
1212
import cn.jpush.api.schedule.model.SchedulePayload;
1313
import cn.jpush.api.schedule.model.TriggerPayload;
14+
import org.slf4j.Logger;
15+
import org.slf4j.LoggerFactory;
1416

1517
/**
1618
* ScheduleClient Tester.
@@ -22,6 +24,8 @@
2224
@Category(SlowTests.class)
2325
public class ScheduleClientTest extends BaseTest {
2426

27+
protected static final Logger LOG = LoggerFactory.getLogger(ScheduleClientTest.class);
28+
2529
public static final int NOT_EXIST = 8104;
2630
public static final int AUTH_FAILED = 8101;
2731
public static final int INVALID_PARAM = 8100;
@@ -93,7 +97,11 @@ public void testScheduleMethods() {
9397
} catch (APIConnectionException e) {
9498
e.printStackTrace();
9599
} catch (APIRequestException e) {
96-
Assert.assertTrue(e.getErrorMessage(), false);
100+
e.printStackTrace();
101+
LOG.info("HTTP Status: " + e.getStatus());
102+
LOG.info("Error Code: " + e.getErrorCode());
103+
LOG.info("Error Message: " + e.getErrorMessage());
104+
LOG.info("Msg ID: " + e.getMsgId());
97105
} finally {
98106
if(!success && null != result) {
99107
try {

0 commit comments

Comments
 (0)