A shared configuration for ORC tests.
| 25 | * A shared configuration for ORC tests. |
| 26 | */ |
| 27 | public interface TestConf { |
| 28 | |
| 29 | Configuration conf = getNewConf(); |
| 30 | |
| 31 | /** |
| 32 | * Clear the configuration. |
| 33 | */ |
| 34 | @BeforeEach |
| 35 | default void clear() { |
| 36 | conf.clear(); |
| 37 | conf.setIfUnset("fs.defaultFS", "file:///"); |
| 38 | conf.setIfUnset("fs.file.impl.disable.cache", "true"); |
| 39 | } |
| 40 | |
| 41 | private static Configuration getNewConf() { |
| 42 | Configuration conf = new Configuration(); |
| 43 | conf.setIfUnset("fs.defaultFS", "file:///"); |
| 44 | conf.setIfUnset("fs.file.impl.disable.cache", "true"); |
| 45 | return conf; |
| 46 | } |
| 47 | } |
no test coverage detected