View Javadoc

1   package org.ogf.saga.namespace.abstracts;
2   
3   import java.util.List;
4   
5   import org.junit.After;
6   import org.junit.Before;
7   import org.junit.Test;
8   import org.ogf.saga.namespace.Flags;
9   import org.ogf.saga.namespace.NSDirectory;
10  import org.ogf.saga.url.URLFactory;
11  
12  /* ***************************************************
13  * *** Centre de Calcul de l'IN2P3 - Lyon (France) ***
14  * ***             http://cc.in2p3.fr/             ***
15  * ***************************************************
16  * File:   AbstractNSDirectoryTest
17  * Author: Sylvain Reynaud (sreynaud@in2p3.fr)
18  * Date:   2 juil. 2007
19  * ***************************************************
20  * Description:                                      */
21  /**
22   *
23   */
24  public abstract class AbstractDirectory extends AbstractData {
25      // setup
26      protected NSDirectory m_subDir;
27  
28      public AbstractDirectory(String protocol) throws Exception {
29          super(protocol);
30      }
31  
32      @Before
33      public void setUp() throws Exception {
34          super.setUp();
35          m_subDir = m_dir.openDir(m_subDirUrl, Flags.NONE.getValue());
36      }
37  
38      @After
39      public void tearDown() throws Exception {
40          if (m_subDir != null) {
41              m_subDir.close();
42          }
43          super.tearDown();
44      }
45  
46  }