|
|
@ -32,4 +32,13 @@ public class EnvKitTest extends Prepare { |
|
|
|
EnvKit.setCurrent(path); |
|
|
|
EnvKit.setCurrent(path); |
|
|
|
Assert.assertEquals(EnvKit.getCurrent().getPath(), path); |
|
|
|
Assert.assertEquals(EnvKit.getCurrent().getPath(), path); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void exit() { |
|
|
|
|
|
|
|
String path = "usr/shared/webroot/WEB-INF"; |
|
|
|
|
|
|
|
EnvKit.setCurrent(path); |
|
|
|
|
|
|
|
EnvKit.checkout(); |
|
|
|
|
|
|
|
Assert.assertNull(EnvKit.getCurrent()); |
|
|
|
|
|
|
|
Assert.assertNull(EnvKit.getWorkResource()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |