View Javadoc

1   /*$Id: AladinImageTest.java,v 1.1 2004/11/03 05:20:50 mch Exp $
2    * Created on 16-Oct-2003
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid
7    * Software License version 1.2, a copy of which has been included
8    * with this distribution in the LICENSE.txt file.
9    *
10  **/
11  package org.astrogrid.datacenter.deployed.vizier;
12  
13  import junit.framework.TestCase;
14  import org.astrogrid.datacenter.impl.cds.generated.aladinimage.AladinImage;
15  import org.astrogrid.datacenter.impl.cds.generated.aladinimage.AladinService;
16  import org.astrogrid.datacenter.impl.cds.generated.aladinimage.AladinServiceLocator;
17  import javax.xml.rpc.ServiceException;
18  
19  /*** Not currently running - CDS have just documented this web service, and want people to send an email before using it - probably
20   * because it loads the servers more. hence, it seems unfair to thrash it in a unit test. will leave for now.
21   * @todo check the wsdl has not changed, write a delegate to wrap it nicely.
22   * @author Noel Winstanley nw@jb.man.ac.uk 16-Oct-2003
23   *
24   */
25  public class AladinImageTest extends TestCase {
26  
27      /***
28       * Constructor for AladinImageTest.
29       * @param arg0
30       */
31      public AladinImageTest(String arg0) {
32          super(arg0);
33      }
34  
35      public void testItsThere() throws ServiceException {
36        AladinService service = new AladinServiceLocator();
37         AladinImage imageClient = service.getAladinImage();
38         
39         //see comment above - don't test yet
40      }
41      
42      public static void main(String[] args) {
43          junit.textui.TestRunner.run(AladinImageTest.class);
44      }
45  
46  }
47  
48  
49  /*
50  $Log: AladinImageTest.java,v $
51  Revision 1.1  2004/11/03 05:20:50  mch
52  Moved datacenter deployment tests out of standard tests
53  
54  Revision 1.1.2.1  2004/11/02 21:51:03  mch
55  Moved deployment tests here - not exactly right either
56  
57  Revision 1.3  2004/10/16 09:48:24  mch
58  Added test skeleton
59  
60  Revision 1.2  2004/10/05 17:08:22  mch
61  Fixed package names and imports
62  
63  Revision 1.1  2004/10/05 17:06:53  mch
64  Moved service implementation tests from unit tests to integration tests
65  
66  Revision 1.2  2003/11/20 15:47:18  nw
67  improved testing
68  
69  Revision 1.1  2003/11/18 11:23:49  nw
70  mavenized cds delegate
71  
72  Revision 1.1  2003/10/16 10:11:45  nw
73  first check in
74   
75  */