use of org.jboss.arquillian.junit.InSequence in project wildfly by wildfly.
the class WSTestCase method testAccess.
@Test
@InSequence(4)
public void testAccess() throws Exception {
URL wsdlURL = new URL(this.url.toExternalForm() + "ws-example?wsdl");
QName serviceName = new QName("http://webservices.smoke.test.as.jboss.org/", "EndpointService");
Service service = Service.create(wsdlURL, serviceName);
Endpoint port = (Endpoint) service.getPort(Endpoint.class);
String echo = port.echo("Foo");
assertThat("Echoing Foo should return Foo not " + echo, echo, is("Foo"));
}
use of org.jboss.arquillian.junit.InSequence in project wildfly by wildfly.
the class LookupTestCase method testServerLocalLookup.
@Test
@OperateOnDeployment("test")
@InSequence(1)
public void testServerLocalLookup() throws Exception {
InitialContext context = new InitialContext();
lookupConnectionFactory(context, "java:jboss/exported/jms/RemoteConnectionFactory");
context.close();
}
use of org.jboss.arquillian.junit.InSequence in project wildfly by wildfly.
the class ImplementValidityAuditStrategyTestCase method testValidityStrategyActivationforEnvers.
@Test
@InSequence(2)
public void testValidityStrategyActivationforEnvers() throws Exception {
SLSBValidityStrategyOrg slsbvalidityOrg = lookup("SLSBValidityStrategyOrg", SLSBValidityStrategyOrg.class);
Organization o1 = slsbvalidityOrg.createOrg("REDHAT", "Software Co", "10/10/1994", "eternity", "Raleigh");
Organization o2 = slsbvalidityOrg.createOrg("HALDIRAMS", "Food Co", "10/10/1974", "eternity", "Delhi");
o2.setStartDate("10/10/1924");
o2.setName("BIKANER");
slsbvalidityOrg.updateOrg(o2);
// check if REV END Date is populated
List<Map<String, Object>> orgHistory = slsbvalidityOrg.verifyEndRevision(new Integer(o2.getId()));
for (Map<String, Object> revisionEntity : orgHistory) {
Assert.assertNotNull(revisionEntity);
Date revendTimestamp = (Date) revisionEntity.get("REVEND_VALIDITY");
DefaultRevisionEntity revEnd = (DefaultRevisionEntity) revisionEntity.get("REVEND");
if (revendTimestamp != null) {
Assert.assertEquals(revendTimestamp.getTime(), revEnd.getTimestamp());
}
}
}
use of org.jboss.arquillian.junit.InSequence in project wildfly by wildfly.
the class EntityTestCase method testOneToMany.
@Test
@InSequence(1)
public void testOneToMany() throws Exception {
EntityTest test = lookup("EntityTest", EntityTest.class);
Customer c = test.oneToManyCreate();
assertNotNull(c);
assertNotNull(c.getTickets());
Set<Ticket> tickets = c.getTickets();
assertTrue(tickets.size() > 0);
assertNotNull(c);
assertNotNull(c.getTickets());
tickets = c.getTickets();
assertTrue(tickets.size() > 0);
}
use of org.jboss.arquillian.junit.InSequence in project wildfly by wildfly.
the class EntityTestCase method testManyToMany.
@Test
@InSequence(3)
public void testManyToMany() throws Exception {
EntityTest test = lookup("EntityTest", EntityTest.class);
test.manyToManyCreate();
Flight f1 = test.findFlightById(new Long(1));
assertTrue("Name read from Hibernate is Airline 1", f1.getCompany().getName().equals("Airline 1"));
Flight f2 = test.findFlightById(new Long(2));
assertTrue("Name read from Hibernate is Airline 1", f2.getCompany().getName().equals("Airline 2"));
assertEquals(1, f1.getCustomers().size());
assertEquals(2, f2.getCustomers().size());
}
Aggregations