Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Add assertion to fail more clearly
Browse files Browse the repository at this point in the history
if the file is missing for whatever reason
  • Loading branch information
batmat committed Oct 30, 2018
1 parent 2de2aa1 commit ce50574
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -3,14 +3,17 @@
import org.junit.Test;

import java.io.File;
import java.net.URL;

import static org.assertj.core.api.Assertions.assertThat;

public class EvergreenUpdateLevelPageDecoratorTest {
@Test
public void getUpdateLevel() {

final File manifestFile = new File(getClass().getResource("manifest.json").getPath());
final URL resource = getClass().getResource("manifest.json");
assertThat(resource).isNotNull();
final File manifestFile = new File(resource.getPath());
assertThat(manifestFile).exists();
assertThat(new EvergreenUpdateLevelPageDecorator(manifestFile).getUpdateLevel()).isEqualTo("2");
}
Expand Down

0 comments on commit ce50574

Please sign in to comment.