Mercurial > hg > release > thermostat-0.6
changeset 675:21eab9e2e62b
Add a test for no agents with the 'View Agents' dialog
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-October/003560.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Wed, 03 Oct 2012 18:26:56 -0400 |
parents | ec7b20408616 |
children | 27610016edd6 |
files | client/core/src/test/java/com/redhat/thermostat/client/ui/AgentInformationDisplayFrameTest.java |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/core/src/test/java/com/redhat/thermostat/client/ui/AgentInformationDisplayFrameTest.java Wed Oct 03 18:20:23 2012 -0400 +++ b/client/core/src/test/java/com/redhat/thermostat/client/ui/AgentInformationDisplayFrameTest.java Wed Oct 03 18:26:56 2012 -0400 @@ -190,6 +190,23 @@ @Category(GUITest.class) @GUITest @Test + public void testInitialInformation() { + fixture.show(); + + String EMPTY_TEXT = "---"; + + assertEquals(EMPTY_TEXT, fixture.textBox("agentName").text()); + assertEquals(EMPTY_TEXT, fixture.textBox("agentId").text()); + assertEquals(EMPTY_TEXT, fixture.textBox("commandAddress").text()); + assertEquals(EMPTY_TEXT, fixture.textBox("startTime").text()); + assertEquals(EMPTY_TEXT, fixture.textBox("stopTime").text()); + assertEquals(EMPTY_TEXT, fixture.textBox("backendDescription").text()); + + } + + @Category(GUITest.class) + @GUITest + @Test public void testUpdatingAgentInformationWorks() { final String AGENT_NAME = "the-agent-name";