Commit 532b26f6 authored by Zhili Tian's avatar Zhili Tian
Browse files

welcome mark and failed test

parent 565ecc09
Pipeline #174138 failed with stages
in 42 seconds
......@@ -12,12 +12,12 @@ public class IndexPage implements Page {
// Header
writer.println("<html>");
writer.println("<head><title>Welcome Mark!</title></head>");
writer.println("<head><title>Welcome</title></head>");
writer.println("<body>");
// Content
writer.println(
"<h1>Welcome!!</h1>" +
"<h1>Welcome Mark!!</h1>" +
"<p>Enter your query in the box below: " +
"<form>" +
"<input type=\"text\" name=\"q\" />" +
......
......@@ -39,4 +39,9 @@ public class QueryProcessorTest {
public void knowsAboutShakespearePoem() throws Exception {
assertThat(queryProcessor.process("Shakespeare Poem"), containsString("The Rape of Lucrece"));
}
@Test
public void failedTest() throws Exception {
assertThat(queryProcessor.process("Shakespeare"), containsString("president"));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment