#768 Create command for updating messages file
This commit is contained in:
@@ -11,6 +11,8 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
/**
|
||||
@@ -119,6 +121,13 @@ public class FileUtilsTest {
|
||||
// Nothing happens
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldGetResourceFromJar() {
|
||||
// given / when / then
|
||||
assertThat(FileUtils.getResourceFromJar("config.yml"), not(nullValue()));
|
||||
assertThat(FileUtils.getResourceFromJar("does-not-exist"), nullValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldConstructPath() {
|
||||
// given/when
|
||||
|
||||
Reference in New Issue
Block a user