Skip to content

Commit

Permalink
unify of CONTRUCT_COUNT constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
kumm committed Apr 23, 2017
1 parent cd5b60a commit 326c6df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import org.jboss.arquillian.graphene.Graphene;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

Expand Down Expand Up @@ -91,7 +89,7 @@ private String slurp(String uri) throws IOException {
}

public void assertDefaultRootNotInstantiated() throws IOException {
assertThat(getCount(RootUI.CONSTRUCT_KEY), is(0));
assertThat(getCount(RootUI.CONSTRUCT_COUNT), is(0));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public void oneToOneRelationBetweenBrowserAndUI()

@Test
public void rootUIDiscovery() throws IOException {
assertThat(getCount(RootUI.CONSTRUCT_KEY), is(0));
assertThat(getCount(RootUI.CONSTRUCT_COUNT), is(0));
openWindow("");
assertThat(getCount(RootUI.CONSTRUCT_KEY), is(1));
assertThat(getCount(RootUI.CONSTRUCT_COUNT), is(1));
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions vaadin-cdi/src/test/java/com/vaadin/cdi/uis/RootUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
*/
@CDIUI("")
public class RootUI extends UI {
public static final String CONSTRUCT_KEY = "RootUIConstruct";
public static final String CONSTRUCT_COUNT = "RootUIConstruct";
@Inject
Counter counter;

@PostConstruct
public void initialize() {
counter.increment(CONSTRUCT_KEY);
counter.increment(CONSTRUCT_COUNT);
}

@Override
Expand Down

0 comments on commit 326c6df

Please sign in to comment.