KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > file > def > FileDefinitionFileSystemConfigTest


1 package org.jbpm.file.def;
2
3 public class FileDefinitionFileSystemConfigTest extends FileDefinitionDbConfigTest {
4
5   public void setUp() {
6     // this is the default configuration
7
// we set it here because it may have been overwritten in previous tests
8

9     // get the root dir of where this class is compiled to :-)
10
String JavaDoc rootDir = FileDefinitionFileSystemConfigTest.class.getProtectionDomain().getCodeSource().getLocation().getFile().toString();
11     FileDefinition.rootDir = rootDir;
12   }
13   
14   public void tearDown() {
15     // restore the default configuration
16
FileDefinition.rootDir = null;
17   }
18 }
19
Popular Tags