[ONOS-2225] Add unit test for Flow Objectives REST API
This commits add unit tests for Flow Objective REST API.
The corresponding REST API implementation can be referred to
e9ac2c50b963465b3210f4336bbe75c8436aeb59.
Change-Id: I018fdafe103b3eb14e06c162c47093a11d660b26
diff --git a/web/api/src/test/resources/org/onosproject/rest/post-forward-objective.json b/web/api/src/test/resources/org/onosproject/rest/post-forward-objective.json
new file mode 100644
index 0000000..634424d
--- /dev/null
+++ b/web/api/src/test/resources/org/onosproject/rest/post-forward-objective.json
@@ -0,0 +1,23 @@
+{
+ "priority": 1,
+ "isPermanent": false,
+ "timeout": 1,
+ "flag": "SPECIFIC",
+ "operation": "ADD",
+ "selector": {
+ "criteria": [
+ {
+ "type": "ETH_TYPE",
+ "ethType": "0x806"
+ }
+ ]
+ },
+ "treatment":
+ {
+ "instructions":
+ [
+ {"type":"OUTPUT","port":-3},
+ {"type":"DROP"}
+ ]
+ }
+}
\ No newline at end of file