File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
src/test/java/cn/jpush/api/schedule Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 1111import cn .jpush .api .push .model .PushPayload ;
1212import cn .jpush .api .schedule .model .SchedulePayload ;
1313import cn .jpush .api .schedule .model .TriggerPayload ;
14+ import org .slf4j .Logger ;
15+ import org .slf4j .LoggerFactory ;
1416
1517/**
1618 * ScheduleClient Tester.
2224@ Category (SlowTests .class )
2325public 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 {
You can’t perform that action at this time.
0 commit comments