@@ -0,0 +1,1609 @@
+/**%0A * Copyright (C) 2011,2012 Callista Enterprise AB %3Cinfo@callistaenterprise.se%3E%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0Apackage org.callistasoftware.netcare.core.spi;%0A%0Aimport org.callistasoftware.netcare.core.support.TestSupport;%0Aimport org.junit.Test;%0A%0Aimport com.notnoop.apns.APNS;%0Aimport com.notnoop.apns.ApnsServiceBuilder;%0Aimport com.notnoop.apns.EnhancedApnsNotification;%0Aimport com.notnoop.apns.PayloadBuilder;%0A%0Apublic class OtherTests extends TestSupport %7B%0A%09//@Test%0A%09public void sendApnsNotification() %7B%0A%09%09 String registrationId = %22ab4fa0c794688dca7c149cbac1001ed2f451d02e4c55cc25be45e7693ad3aae3%22;%0A%09%09 String message = %22Hello%22;%0A%09%09 ApnsServiceBuilder sb = APNS.newService();%0A%09%09 %0A%09%09 sb.withCert(%22/tmp/apns-dev.p12%22, %22Enterprisy%22).withSandboxDestination();%0A%09%09 %0A%09%09 PayloadBuilder pb = APNS.newPayload();%0A%09%09 pb.alertBody(message);%0A%09%09 pb.sound(%22default%22);%0A%09%09 pb.badge(1);%0A%09%09 %09%09 %0A%09%09 sb.build().push(new EnhancedApnsNotification(1, 900, registrationId, pb.build()));%0A%09%7D%0A%0A%7D%0A

test stub for apns push