X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuk%2Fac%2Fvamsas%2Ftest%2Fsimpleclient%2FTestSessionURN.java;h=266bad92ce00c7af9f02c3f914c7e6bf659f362d;hb=1eea4b639911330e7cd65e17c5421cc584f0d22e;hp=e0759e2aa360b43b179fbeb590d9d178ee09f7d5;hpb=a579aca161da22d22f4ab8156c908c21325b63f6;p=vamsas.git diff --git a/src/uk/ac/vamsas/test/simpleclient/TestSessionURN.java b/src/uk/ac/vamsas/test/simpleclient/TestSessionURN.java index e0759e2..266bad9 100644 --- a/src/uk/ac/vamsas/test/simpleclient/TestSessionURN.java +++ b/src/uk/ac/vamsas/test/simpleclient/TestSessionURN.java @@ -1,29 +1,49 @@ -package uk.ac.vamsas.test.simpleclient; - -import java.io.File; - -import uk.ac.vamsas.client.simpleclient.SessionUrn; - -/** - * Tests simple client sessionURN creation - * - * - */ -public class TestSessionURN { - - public static void main (String [] arg) throws Exception - { - String file = null; - if (arg == null || arg.length ==0) - file = "."; - else - file = arg[0]; - - File f = new File (file); - SessionUrn urn = new SessionUrn(f); - System.out.println("urn "+urn.getSessionUrn()); - System.out.println("urn file "+ urn.asFile().getAbsolutePath()); - System.out.println("urn file exists?"+ urn.asFile().exists()); - } - -} +/* + * This file is part of the Vamsas Client version 0.2. + * Copyright 2010 by Jim Procter, Iain Milne, Pierre Marguerite, + * Andrew Waterhouse and Dominik Lindner. + * + * Earlier versions have also been incorporated into Jalview version 2.4 + * since 2008, and TOPALi version 2 since 2007. + * + * The Vamsas Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The Vamsas Client is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with the Vamsas Client. If not, see . + */ +package uk.ac.vamsas.test.simpleclient; + +import java.io.File; + +import uk.ac.vamsas.client.simpleclient.SessionUrn; + +/** + * Tests simple client sessionURN creation + * + * + */ +public class TestSessionURN { + + public static void main(String[] arg) throws Exception { + String file = null; + if (arg == null || arg.length == 0) + file = "."; + else + file = arg[0]; + + File f = new File(file); + SessionUrn urn = new SessionUrn(f); + System.out.println("urn " + urn.getSessionUrn()); + System.out.println("urn file " + urn.asFile().getAbsolutePath()); + System.out.println("urn file exists?" + urn.asFile().exists()); + } + +}