import java.util.HashMap;
import java.util.Map;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.junit.Before;
-import org.junit.Test;
import org.openecomp.policy.api.PolicyEngine;
import org.openecomp.policy.api.PolicyEngineException;
import org.openecomp.policy.api.PolicyEventException;
import org.openecomp.policy.api.PolicyResponse;
import org.openecomp.policy.api.PolicyResponseStatus;
-
-import org.openecomp.policy.common.logging.flexlogger.*;
+import org.openecomp.policy.common.logging.flexlogger.FlexLogger;
+import org.openecomp.policy.common.logging.flexlogger.Logger;
public class SendEventTest {
}
//@Test
+ @SuppressWarnings("deprecation")
public void testSendEventFail() {
eventAttributes = null;
try {
}
//@Test
+ @SuppressWarnings("deprecation")
public void testSendEventFailNull() {
eventAttributes.put("", "");
try {
}*/
//@Test
+ @SuppressWarnings("deprecation")
public void testSendEventNotValid() {
eventAttributes.put("Action.fail", "Value");
try {
}
//@Test
+ @SuppressWarnings("deprecation")
public void testSendEventActionAdvised() {
eventAttributes.put("Key", "Value");
eventAttributes.put("cpu", "80");
}
//@Test
+ @SuppressWarnings("deprecation")
public void testSendEventActionTaken() {
eventAttributes.put("Key", "Value");
eventAttributes.put("cpu", "91");