Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
policy/engine jdk11 upgrades
[policy/engine.git]
/
BRMSGateway
/
src
/
test
/
java
/
org
/
onap
/
policy
/
brms
/
api
/
BrmsPushTest.java
diff --git
a/BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsPushTest.java
b/BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsPushTest.java
index
4141a8b
..
3adc557
100644
(file)
--- a/
BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsPushTest.java
+++ b/
BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsPushTest.java
@@
-2,7
+2,7
@@
* ============LICENSE_START=======================================================
* ONAP Policy Engine
* ================================================================================
* ============LICENSE_START=======================================================
* ONAP Policy Engine
* ================================================================================
- * Copyright (C) 2018-20
19
AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018-20
20
AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-23,7
+23,7
@@
package org.onap.policy.brms.api;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
-import static org.mockito.Matchers.any;
+import static org.mockito.
Argument
Matchers.any;
import java.util.HashMap;
import java.util.List;
import java.util.HashMap;
import java.util.List;
@@
-46,15
+46,17
@@
import org.onap.policy.utils.BackUpHandler;
import org.onap.policy.utils.BackUpMonitor;
import org.onap.policy.utils.BackUpMonitorException;
import org.powermock.api.mockito.PowerMockito;
import org.onap.policy.utils.BackUpMonitor;
import org.onap.policy.utils.BackUpMonitorException;
import org.powermock.api.mockito.PowerMockito;
+import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
+@PowerMockIgnore({"com.sun.org.apache.xerces.*", "jdk.internal.reflect.*", "javax.xml.*", "org.xml.*", "org.w3c.*"})
+@PrepareForTest({Persistence.class, BackUpMonitor.class})
public class BrmsPushTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
public class BrmsPushTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
- @PrepareForTest({Persistence.class, BackUpMonitor.class})
@Test
public void testPush() throws BackUpMonitorException, PolicyException {
// Mock emf, persistence, and query
@Test
public void testPush() throws BackUpMonitorException, PolicyException {
// Mock emf, persistence, and query