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
14
15
16
17
18
19
20
21
22
23
24 public abstract class AbstractDirectory extends AbstractData {
25
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 }