Skip to content
Snippets Groups Projects

Update SiteGenTest.java

Closed Aleksi Saarinen requested to merge alosks-main-patch-38870 into main
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
+ 3
4
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class SiteGenTest {
@Test
public void testHtmlString() {
String correctHtml = "<html><head><title>My favorite movies</title></head><body><h1>My favorite movies</h1><ul><li>Star Wars</li><li>Star Trek</li><li>Battlestar Galactica</li></ul></body></html>";
Assertions.assertEquals(correctHtml, SiteGen.htmlString);
}
}
Loading