javapns.test
Class FeedbackTest

java.lang.Object
  extended by javapns.test.FeedbackTest

public class FeedbackTest
extends Object

A command-line test facility for the Feedback Service.

Example: java -cp "[required libraries]" javapns.test.FeedbackTest keystore.p12 mypass

By default, this test uses the sandbox service. To switch, add "production" as a third parameter:

Example: java -cp "[required libraries]" javapns.test.FeedbackTest keystore.p12 mypass production

Author:
Sylvain Pedneault

Method Summary
static void configureBasicLogging()
          Enable Log4J with a basic default configuration (console only).
static void main(String[] args)
          Execute this class from the command line to run tests.
static void verifyKeystore(Object keystoreReference, String password, boolean production)
          Validate a keystore reference and print the results to the console.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Execute this class from the command line to run tests.

Parameters:
args -

configureBasicLogging

public static void configureBasicLogging()
Enable Log4J with a basic default configuration (console only).


verifyKeystore

public static void verifyKeystore(Object keystoreReference,
                                  String password,
                                  boolean production)
Validate a keystore reference and print the results to the console.

Parameters:
keystoreReference - a reference to or an actual keystore
password - password for the keystore
production - service to use