src/test/java/pityoulish/tickets/TicketImplTest.java
protected static TicketImpl newTicketImpl(TicketManager creator,
                                            String       username,
                                            InetAddress   address,
                                            String           host,
                                            String          token,
                                            long           expiry,
                                            int           actions)
  {
    if (creator == null)
       creator = new DefaultTicketManager();
    if (username == null)
       username = "j1user";
    // InetAddress and host are optional
    if (token == null)
       token = "token/"+username;
    // expiry is primitive
    // actions is primitive

    return new TicketImpl(creator, username, address, host,
                          token, expiry, actions);
  }
/**
   * Creates a ticket implementation.
   * Mandatory <code>null</code> arguments will be set to defaults.
   */
Creates a ticket implementation.
Mandatory null arguments will be set to defaults.
Creates a ticket implementation . Mandatory null arguments will be set to defaults .
protected static TicketImpl newTicketImpl(TicketManager creator,
                                            String       username,
                                            InetAddress   address,
                                            String           host,
                                            String          token,
                                            long           expiry,
                                            int           actions)
  {
    if (creator == null)
       creator = new DefaultTicketManager();
    if (username == null)
       username = "j1user";
    if (token == null)
       token = "token/"+username;
    return new TicketImpl(creator, username, address, host,
                          token, expiry, actions);
  }
protected static TicketImpl newTicketImpl ( TicketManager creator , String username , InetAddress address , String host , String token , long expiry , int actions ) { if ( creator == null ) creator = new DefaultTicketManager ( ) ; if ( username == null ) username = "j1user" ; if ( token == null ) token = "token/" + username ; return new TicketImpl ( creator , username , address , host , token , expiry , actions ) ; }
Creates a ticket implementation.
Creates a ticket implementation .
// InetAddress and host are optional // expiry is primitive // actions is primitive