use of net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp in project jain-slee.diameter by RestComm.
the class BaseFactoriesTest method testAvpFactoryCreateExperimentalResult.
@Test
public void testAvpFactoryCreateExperimentalResult() {
ExperimentalResultAvp erAvp1 = avpFactory.createExperimentalResult(10609L, 9999L);
Assert.assertNotNull("Created Experimental-Result AVP from objects should not be null.", erAvp1);
ExperimentalResultAvp erAvp2 = avpFactory.createExperimentalResult(erAvp1.getExtensionAvps());
Assert.assertEquals("Created Experimental-Result AVP from extension avps should be equal to original.", erAvp1, erAvp2);
ExperimentalResultAvp erAvp3 = avpFactory.createExperimentalResult(erAvp2.getVendorIdAVP(), erAvp2.getExperimentalResultCode());
Assert.assertEquals("Created Experimental-Result AVP from getters should be equal to original.", erAvp1, erAvp3);
}
use of net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp in project jain-slee.diameter by RestComm.
the class DiameterAvpFactoryImpl method createExperimentalResult.
// Custom Grouped AVP Creators
/*
* (non-Javadoc)
* @see net.java.slee.resource.diameter.base.DiameterAvpFactory#createExperimentalResult(long, long)
*/
public ExperimentalResultAvp createExperimentalResult(long vendorId, long experimentalResultCode) {
ExperimentalResultAvp experimentalResultAvp = createExperimentalResult();
experimentalResultAvp.setVendorIdAVP(vendorId);
experimentalResultAvp.setExperimentalResultCode(experimentalResultCode);
return experimentalResultAvp;
}
Aggregations