Skip to content

Commit

Permalink
#186 add test for unhappy case
Browse files Browse the repository at this point in the history
  • Loading branch information
casid committed Nov 28, 2022
1 parent 2199e85 commit 7693896
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jte/src/test/java/gg/jte/resolve/ResourceCodeResolverTest.java
Expand Up @@ -41,7 +41,16 @@ void lastModified() {

long lastModified = resourceCodeResolver.getLastModified("welcome.jte");

assertThat(lastModified).isNotEqualTo(0L);
assertThat(lastModified).isGreaterThan(0L);
}

@Test
void lastModified_templateDoesNotExist() {
resourceCodeResolver = new ResourceCodeResolver("benchmark");

long lastModified = resourceCodeResolver.getLastModified("template-that-does-not-exist.jte");

assertThat(lastModified).isEqualTo(0L);
}

@Test
Expand Down

0 comments on commit 7693896

Please sign in to comment.