- java.lang.Object
-
- net.morimekta.testing.file.TestConfigMap
-
public class TestConfigMap extends Object
A helper class to wrap a directory and operate on it like a kubernetes config map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TestConfigMap.UpdateHelper
-
Constructor Summary
Constructors Constructor Description TestConfigMap(Path dir)
TestConfigMap(Path dir, Class<?> resourceLoaderClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getConfigMapDir()
File
getFile(String name)
Path
getPath(String name)
String
toString()
TestConfigMap.UpdateHelper
update()
-
-
-
Constructor Detail
-
TestConfigMap
public TestConfigMap(Path dir) throws IOException
- Throws:
IOException
-
TestConfigMap
public TestConfigMap(Path dir, Class<?> resourceLoaderClass) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getConfigMapDir
public Path getConfigMapDir()
-
update
public TestConfigMap.UpdateHelper update() throws IOException
- Throws:
IOException
-
-