summaryrefslogtreecommitdiffstats
path: root/policy-core/drools-artifact-1.1/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-02-08 13:35:44 -0600
committerJorge Hernandez <jh1730@att.com>2018-02-08 13:35:44 -0600
commit19257102e06ecea46c0c3a6ba2063a42e6c4231a (patch)
tree93321078632099ff48233a288984d27b6082536c /policy-core/drools-artifact-1.1/src
parent9916cc6f9f6070c879cbf5ae19441155fcff695c (diff)
programatic install of rules artifacts for junits
instead of relying on pom.xml, build settings. since jenkins jobs that generate sonars don't seem to go through a build phase anymore, therefore the preceding artifacts are not available in the local repository, which is required by the tests. Change-Id: Icfd14b2f8a6c6e1ac7d986bd6eb977b2a83b044d Issue-ID: POLICY-621 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-core/drools-artifact-1.1/src')
-rw-r--r--policy-core/drools-artifact-1.1/src/main/resources/META-INF/kmodule.xml6
-rw-r--r--policy-core/drools-artifact-1.1/src/main/resources/rules.drl30
2 files changed, 0 insertions, 36 deletions
diff --git a/policy-core/drools-artifact-1.1/src/main/resources/META-INF/kmodule.xml b/policy-core/drools-artifact-1.1/src/main/resources/META-INF/kmodule.xml
deleted file mode 100644
index 22319689..00000000
--- a/policy-core/drools-artifact-1.1/src/main/resources/META-INF/kmodule.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule">
- <kbase name="rules">
- <ksession name="session1"/>
- </kbase>
-</kmodule>
diff --git a/policy-core/drools-artifact-1.1/src/main/resources/rules.drl b/policy-core/drools-artifact-1.1/src/main/resources/rules.drl
deleted file mode 100644
index 9dac208b..00000000
--- a/policy-core/drools-artifact-1.1/src/main/resources/rules.drl
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.onap.policy.drools.core.test;
-
-rule "Initialization"
- when
- then
- {
- System.out.println("Initialization rule running");
- }
-end
-
-rule "Add elements of an int array"
- when
- $object : Object()
- then
- {
- if ($object instanceof int[])
- {
- int[] array = (int[])($object);
-
- System.out.println("Received array of length " + array.length);
- int sum = 0;
- for (int i = 1 ; i < array.length ; i += 1)
- {
- sum += array[i];
- }
- array[0] = sum;
- retract($object);
- }
- }
-end