1 19 20 package org.apache.geronimo.testsuite.enterprise.jms; 21 22 import org.apache.geronimo.testsupport.SeleniumTestSupport; 23 24 import org.testng.annotations.Test; 25 26 31 @Test 32 public class JMSTest 33 extends SeleniumTestSupport { 34 @Test 35 public void testIndexContent() throws Exception { 36 selenium.open("/testjms/JMSQueueSender"); 37 selenium.waitForPageToLoad("30000"); 38 assertEquals("JMS Sender", selenium.getTitle()); 39 assertEquals("Sent JMS Queue Message", selenium.getText("xpath=/html/body")); 40 41 selenium.open("/testjms/JMSQueueReceiver"); 42 selenium.waitForPageToLoad("30000"); 43 assertEquals("JMS Receiver", selenium.getTitle()); 44 assertEquals("Received JMS Queue Message", selenium.getText("xpath=/html/body")); 45 46 selenium.open("/testjms/JMSTopicSenderReceiver"); 47 selenium.waitForPageToLoad("30000"); 48 assertEquals("JMS Topic Sender Receiver", selenium.getTitle()); 49 assertEquals("Received JMS Topic Message", selenium.getText("xpath=/html/body")); 50 51 } 52 } 53 54 | Popular Tags |