Methods Summary |
---|
protected void | setUp()
// create a context to poke with a stick
c = ContextFactory.createTestContext(Constants.WSAT_2004_PROTOCOL, 0l);
|
public void | testContextExpiration1()
assertEquals(0l, c.getExpires());
|
public void | testContextExpiration2()
CoordinationContext200410 c = new CoordinationContext200410();
c.setExpires(-1);
assert(c.getExpires() == 0l);
|
public void | testContextFactory1()
ContextFactory.createTestContext(Constants.WSAT_2004_PROTOCOL, 0l);
|
public void | testContextFactory2()
try {
ContextFactory.createTestContext(Constants.WSAT_OASIS_NSURI, 0l);
} catch(UnsupportedOperationException uoe) {
return; // pass - expected exception
}
fail("Was expecting UnsupportedOperationException");
|
public void | testContextGetAttrs()
assert(c.getOtherAttributes().size()==0); // should initially be empty
|
public void | testContextIdPrefix()
assert(c.getIdentifier().startsWith("uuid:WSCOOR-SUN-"));
|
public void | testContextRegServiceEPR()
EndpointReference epr = c.getRegistrationService();
// TODO: figure out how to assert that the EPR is our registration
// service EPR
|
public void | testContextRootReg()
assertNull(c.getRootRegistrationService()); // should initially be null
|
public void | testContextSetters()
CoordinationContext200410 c = new CoordinationContext200410();
c.setIdentifier("foo");
c.setExpires(5000);
c.setRegistrationService(null);
c.setRootCoordinatorRegistrationService(null);
|
public void | testContextType()
assertEquals(Constants.WSAT_SOAP_NSURI, c.getCoordinationType());
|
public void | testContextValue()
assert(c.getValue() instanceof CoordinationContext200410);
|