PageRenderTime 19ms CodeModel.GetById 9ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/sitebricks-acceptance-tests/src/test/java/com/google/sitebricks/acceptance/DecoratorAcceptanceTest.java

http://github.com/dhanji/sitebricks
Java | 25 lines | 17 code | 5 blank | 3 comment | 0 complexity | 6bdce63eb0a85b21b98db7d7dea67afa MD5 | raw file
 1package com.google.sitebricks.acceptance;
 2
 3import org.openqa.selenium.WebDriver;
 4import org.testng.annotations.Test;
 5
 6import com.google.sitebricks.acceptance.page.DecoratorPage;
 7import com.google.sitebricks.acceptance.util.AcceptanceTest;
 8
 9/**
10 * @author Dhanji R. Prasanna (dhanji@gmail.com)
11 */
12@Test(suiteName = AcceptanceTest.SUITE)
13public class DecoratorAcceptanceTest {
14
15  public void shouldRenderHelloWorldEmbeddedWithRequires() {
16    WebDriver driver = AcceptanceTest.createWebDriver();
17    DecoratorPage page = DecoratorPage.open(driver);
18
19    assert page.hasBasePageText();
20    assert page.hasSubclassVariable();
21    assert page.hasSubclassText(); 
22    assert page.hasSubclassVariableInTemplate();
23    assert page.hasBasePageVariable();
24  }
25}