~ubuntu-branches/ubuntu/raring/libjboss-remoting-java/raring

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/transporter/proxy/local/DateProcessorImpl.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20110909140103-o8ucrolqt5g25k57
Tags: upstream-2.5.3.SP1
ImportĀ upstreamĀ versionĀ 2.5.3.SP1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************
 
2
 *                                     *
 
3
 *  JBoss: The OpenSource J2EE WebOS   *
 
4
 *                                     *
 
5
 *  Distributable under LGPL license.  *
 
6
 *  See terms of license at gnu.org.   *
 
7
 *                                     *
 
8
 ***************************************/
 
9
package org.jboss.test.remoting.transporter.proxy.local;
 
10
 
 
11
import java.text.DateFormat;
 
12
import java.util.Date;
 
13
 
 
14
/**
 
15
 * @author <a href="mailto:tom@jboss.org">Tom Elrod</a>
 
16
 */
 
17
public class DateProcessorImpl
 
18
{
 
19
   public static boolean formatDateCalled = false;
 
20
 
 
21
   public String formatDate(Date dateToConvert)
 
22
   {
 
23
      DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM);
 
24
      System.out.println("Sending back to caller formated date of " + dateFormat);
 
25
      formatDateCalled = true;
 
26
      return dateFormat.format(dateToConvert);
 
27
   }
 
28
 
 
29
}
 
 
b'\\ No newline at end of file'