Search in sources :

Example 1 with ASDCNotificationCallBack

use of org.onap.so.asdc.client.ASDCNotificationCallBack 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());
}
Also used : IDistributionClientResult(org.onap.sdc.api.results.IDistributionClientResult) ASDCConfiguration(org.onap.so.asdc.client.ASDCConfiguration) ASDCNotificationCallBack(org.onap.so.asdc.client.ASDCNotificationCallBack) DistributionClientResultImpl(org.onap.sdc.impl.DistributionClientResultImpl) Test(org.junit.Test)

Example 2 with ASDCNotificationCallBack

use of org.onap.so.asdc.client.ASDCNotificationCallBack 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());
}
Also used : IDistributionClientResult(org.onap.sdc.api.results.IDistributionClientResult) ASDCConfiguration(org.onap.so.asdc.client.ASDCConfiguration) ASDCNotificationCallBack(org.onap.so.asdc.client.ASDCNotificationCallBack) DistributionClientResultImpl(org.onap.sdc.impl.DistributionClientResultImpl) ASDCStatusCallBack(org.onap.so.asdc.client.ASDCStatusCallBack) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 IDistributionClientResult (org.onap.sdc.api.results.IDistributionClientResult)2 DistributionClientResultImpl (org.onap.sdc.impl.DistributionClientResultImpl)2 ASDCConfiguration (org.onap.so.asdc.client.ASDCConfiguration)2 ASDCNotificationCallBack (org.onap.so.asdc.client.ASDCNotificationCallBack)2 ASDCStatusCallBack (org.onap.so.asdc.client.ASDCStatusCallBack)1