use of org.onap.so.asdc.client.ASDCConfiguration in project so by onap.
the class DistributionClientEmulatorTest method initPrimary.
@Test
public void initPrimary() {
IDistributionClientResult result = distClientEmulator.init(new ASDCConfiguration(), new ASDCNotificationCallBack());
IDistributionClientResult expectedResult = new DistributionClientResultImpl(DistributionActionResultEnum.SUCCESS, DistributionActionResultEnum.SUCCESS.name());
assertEquals(expectedResult.getDistributionActionResult(), result.getDistributionActionResult());
assertEquals(expectedResult.getDistributionMessageResult(), result.getDistributionMessageResult());
}
use of org.onap.so.asdc.client.ASDCConfiguration in project so by onap.
the class DistributionClientEmulatorTest method updateConfiguration.
@Test
public void updateConfiguration() {
IDistributionClientResult result = distClientEmulator.updateConfiguration(new ASDCConfiguration());
IDistributionClientResult expectedResult = new DistributionClientResultImpl(DistributionActionResultEnum.SUCCESS, DistributionActionResultEnum.SUCCESS.name());
assertEquals(expectedResult.getDistributionActionResult(), result.getDistributionActionResult());
assertEquals(expectedResult.getDistributionMessageResult(), result.getDistributionMessageResult());
}
use of org.onap.so.asdc.client.ASDCConfiguration in project so by onap.
the class DistributionClientEmulatorTest method initSecondary.
@Test
public void initSecondary() {
IDistributionClientResult result = distClientEmulator.init(new ASDCConfiguration(), new ASDCNotificationCallBack(), new ASDCStatusCallBack());
IDistributionClientResult expectedResult = new DistributionClientResultImpl(DistributionActionResultEnum.SUCCESS, DistributionActionResultEnum.SUCCESS.name());
assertEquals(expectedResult.getDistributionActionResult(), result.getDistributionActionResult());
assertEquals(expectedResult.getDistributionMessageResult(), result.getDistributionMessageResult());
}
Aggregations