aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-09-22 18:13:26 +0200
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2017-09-22 18:13:26 +0200
commiteb2b884f92a6b5405d7abffc919a3c5d6f9c8389 (patch)
treebe88532de1c22bb8ce9abcb949f9f68c74bb4c8e /src/test/java/org
parentb30b002d2f68c83d7d04dc8d15199a93b6126ed2 (diff)
Fix bug at runtime
There was a missing class due to policy dependency changed Change-Id: Id8d85a8925c1ac2164528333672a552cb55ca5ca Issue-ID: CLAMP-48 Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/onap/clamp/clds/it/OperationPolicyReqIT.java3
-rw-r--r--src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java10
2 files changed, 2 insertions, 11 deletions
diff --git a/src/test/java/org/onap/clamp/clds/it/OperationPolicyReqIT.java b/src/test/java/org/onap/clamp/clds/it/OperationPolicyReqIT.java
index e57c9ddea..0f874e987 100644
--- a/src/test/java/org/onap/clamp/clds/it/OperationPolicyReqIT.java
+++ b/src/test/java/org/onap/clamp/clds/it/OperationPolicyReqIT.java
@@ -45,12 +45,11 @@ import org.onap.clamp.clds.util.ResourceFileUtil;
import org.onap.policy.api.AttributeType;
import org.onap.policy.controlloop.policy.builder.BuilderException;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
-@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
+@SpringBootTest
@TestPropertySource(locations = "classpath:application-no-camunda.properties")
public class OperationPolicyReqIT extends AbstractIT {
diff --git a/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java b/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java
index 09f1efef3..c57ddbfd6 100644
--- a/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java
+++ b/src/test/java/org/onap/clamp/clds/it/PolicyClientIT.java
@@ -47,7 +47,6 @@ import org.onap.clamp.clds.util.ResourceFileUtil;
import org.onap.policy.api.AttributeType;
import org.skyscreamer.jsonassert.JSONAssert;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
@@ -56,7 +55,7 @@ import org.springframework.test.context.junit4.SpringRunner;
* Policy Delegates in tests.
*/
@RunWith(SpringRunner.class)
-@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
+@SpringBootTest
@TestPropertySource(locations = "classpath:application-no-camunda.properties")
public class PolicyClientIT extends AbstractIT {
String modelProp;
@@ -90,7 +89,6 @@ public class PolicyClientIT extends AbstractIT {
} catch (Exception e) {
assertTrue(e.getMessage().contains("Policy send failed: PE500 "));
}
- System.out.println(responseMessage);
}
}
@@ -104,7 +102,6 @@ public class PolicyClientIT extends AbstractIT {
Map<AttributeType, Map<String, String>> attributes = OperationalPolicyReq.formatAttributes(refProp,
prop, policy.getId(), policyChain);
String responseMessage = policyClient.sendBrmsPolicy(attributes, prop, operationalPolicyRequestUuid);
- System.out.println(responseMessage);
}
}
}
@@ -123,7 +120,6 @@ public class PolicyClientIT extends AbstractIT {
} catch (Exception e) {
assertTrue(e.getMessage().contains("Exception while communicating with Policy"));
}
- System.out.println(responseMessage);
}
}
@@ -139,7 +135,6 @@ public class PolicyClientIT extends AbstractIT {
} catch (Exception e) {
assertTrue(e.getMessage().contains("Policy delete failed: PE500 "));
}
- System.out.println(responseMessage);
}
}
@@ -152,7 +147,6 @@ public class PolicyClientIT extends AbstractIT {
for (PolicyChain policyChain : policy.getPolicyChains()) {
prop.setPolicyUniqueId(policyChain.getPolicyId());
String responseMessage = policyClient.deleteBrms(prop);
- System.out.println(responseMessage);
}
}
}
@@ -169,8 +163,6 @@ public class PolicyClientIT extends AbstractIT {
} catch (Exception e) {
assertTrue(e.getMessage().contains("Policy delete failed: PE500 "));
}
-
- System.out.println(responseMessage);
}
}