assertEquals(getErrorStatus(), conn.getResponseCode());
driver.get(url.toString());
assertEquals("java.lang.RuntimeException: throwed", driver.findElement(By.cssSelector("div.juzu > section > p")).getText().trim());
// Make a change
JavaFile pkgFile = getCompiler().assertJavaSource("bridge.runmode.live.controller.A");
pkgFile.assertSave(pkgFile.assertContent().replace("\"ok\"", "\"OK\""));
driver.get(applicationURL().toString());
elt = driver.findElement(By.id("trigger"));
elt.click();
assertEquals("OK", driver.findElement(By.tagName("body")).getText());
assertTrue(SAME_CL_1);
assertFalse(SAME_CL_2);
assertNull(SAME_CL_3);
// Now make fail with compilation error
pkgFile.assertSave(pkgFile.assertContent().replace("public", "_public_"));
//
conn = (HttpURLConnection)applicationURL().openConnection();
assertEquals(getErrorStatus(), conn.getResponseCode());
driver.get(applicationURL().toString());
assertNotNull(driver.findElement(By.cssSelector("div.juzu")));
assertNotNull(elt);
//
pkgFile.assertSave(pkgFile.assertContent().replace("_public_", "public"));
//
driver.get(applicationURL().toString());
elt = driver.findElement(By.id("trigger"));
elt.click();
assertEquals("OK", driver.findElement(By.tagName("body")).getText());
// Add a new class
JavaFile abc = getCompiler().assertAddJavaSource("bridge.runmode.live.controller.C");
driver.get(applicationURL().toString());
assertTrue(SAME_CL_1);
assertFalse(SAME_CL_2);
assertTrue(SAME_CL_3);
}