Additional Unit Testing

This commit is contained in:
Jason White 2017-05-24 17:12:28 -04:00
parent e733131241
commit 31548b9c57

View File

@ -66,6 +66,7 @@ public class StoredXssComments extends AssignmentEndpoint {
private static final String phoneHomeString = "<script>webgoat.customjs.phoneHome()</script>";
static {
comments.add(new Comment("secUriTy", DateTime.now().toString(fmt), "<script>console.warn('unit test me')</script>Comment for Unit Testing"));
comments.add(new Comment("webgoat", DateTime.now().toString(fmt), "This comment is safe"));
comments.add(new Comment("guest", DateTime.now().toString(fmt), "This one is safe too."));
comments.add(new Comment("guest", DateTime.now().toString(fmt), "Can you post a comment, calling webgoat.customjs.phoneHome() ?"));