Skip to content

Commit 33b1db2

Browse files
committed
fix example name
1 parent cd65468 commit 33b1db2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/main/java/cn/jpush/api/examples/ScheduleExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ public static void testCreateWeeklySchedule() {
8787

8888
public static void testCreateMonthlySchedule() {
8989
JPushClient jPushClient = new JPushClient(masterSecret, appKey);
90-
String name = "test_weekly_schedule";
90+
String name = "test_monthly_schedule";
9191
String start = "2015-08-06 12:16:13";
9292
String end = "2115-08-06 12:16:13";
9393
String time = "14:00:00";
9494
String[] points = {"01", "02"};
95-
PushPayload push = PushPayload.alertAll("test weekly example.");
95+
PushPayload push = PushPayload.alertAll("test monthly example.");
9696
try {
9797
ScheduleResult result = jPushClient.createMonthlySchedule(name, start, end, time, points, push);
9898
LOG.info("schedule result is " + result);
9999
} catch (APIConnectionException e) {
100-
LOG.error("Connection error. Should retry later. ", e);
100+
LOG.error("Connection error. Should retry later.", e);
101101
} catch (APIRequestException e) {
102102
LOG.error("Error response from JPush server. Should review and fix it. ", e);
103103
LOG.info("HTTP Status: " + e.getStatus());

0 commit comments

Comments
 (0)