String contents = result.getWebResponse().getContentAsString();
assertTrue(contents.contains(String.format("<title>%s [Jenkins]</title>", projectName)));
}
@Issue("JENKINS-24433")
@Test
<BUG>public void testSearchByProjectNameBehindAFolder() throws Exception {
final String projectName = "testSearchByProjectName";
j.createFreeStyleProject(projectName);
j.createFolder("my-folder-1").createProject(FreeStyleProject.class, "my-job-1");
Page result = j.createWebClient().goTo("job/my-folder-1/search?q="+ projectName);
</BUG>
assertNotNull(result);

String contents = result.getWebResponse().getContentAsString();
assertTrue(contents.contains(String.format("<title>%s [Jenkins]</title>", projectName)));
}
@Issue("JENKINS-24433")
@Test
public void testSearchByProjectNameBehindAFolder() throws Exception {
FreeStyleProject myFreeStyleProject = j.createFreeStyleProject("testSearchByProjectName");
MockFolder myMockFolder = j.createFolder("my-folder-1");
Page result = j.createWebClient().goTo(myMockFolder.getUrl() + "search?q="+ myFreeStyleProject.getName());
assertNotNull(result);
