Testing a TIP Transaction from Eclipse

You can use the following code to test a TIP transaction:

public class TipTransaction
{
 public static void main(String args[])
 {
   Trans_Legacy tx = new Trans_Legacy();
   try
   {
     String input = "<enter the transaction input here>";
     byte[] txInput = input.getBytes();
     byte[] txOutput = tx.callTrans(txInput);
    TipAllDataBufferWrapper wrap = new TipAllDataBufferWrapper(txOutput);

     System.out.print(wrap.getBuffer());   

}
   catch (Exception e)

    {
     e.printStackTrace();
   }
 }
}