package org.openecomp.appc.dg.aai.impl;
-import org.junit.*;
import org.junit.runner.RunWith;
-import org.mockito.*;
import org.openecomp.appc.dg.aai.Constants;
import org.openecomp.appc.dg.aai.impl.AAIPluginImpl;
import org.openecomp.appc.dg.common.dao.DAOService;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
-import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
-import static org.powermock.api.support.SuppressCode.suppressConstructor;
@RunWith(PowerMockRunner.class)
aaiPlugin.postGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}
aaiPlugin.postGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}
aaiPlugin.postGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}
aaiPlugin.getGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}
aaiPlugin.getGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}
aaiPlugin.getGenericVnfData(params, ctx);
Assert.assertTrue(false);
} catch (APPCException e) {
- Assert.assertNotNull(ctx.getAttribute(Constants.DG_OUTPUT_STATUS_MESSAGE));
+ Assert.assertNotNull(ctx.getAttribute(Constants.ATTRIBUTE_ERROR_MESSAGE));
}
}