e0759e2aa360b43b179fbeb590d9d178ee09f7d5
[vamsas.git] / src / uk / ac / vamsas / test / simpleclient / TestSessionURN.java
1 package uk.ac.vamsas.test.simpleclient;
2
3 import java.io.File;
4
5 import uk.ac.vamsas.client.simpleclient.SessionUrn;
6
7 /**
8  * Tests simple client sessionURN creation 
9  * 
10  *
11  */
12 public class TestSessionURN {
13   
14   public static void main (String [] arg) throws Exception
15   {
16     String file = null;
17    if (arg == null || arg.length ==0)
18      file = ".";
19      else
20        file = arg[0];
21  
22         File f = new File (file);
23         SessionUrn urn = new SessionUrn(f);
24         System.out.println("urn "+urn.getSessionUrn());
25         System.out.println("urn  file "+ urn.asFile().getAbsolutePath());
26         System.out.println("urn  file  exists?"+ urn.asFile().exists());
27   }
28
29 }