diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-04-17 14:45:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-17 14:45:43 +0000 |
commit | cd6fc330f5d635d177f44329583c1d7770787d75 (patch) | |
tree | c6c40f32b0556968a190889b545c9e799660e19a | |
parent | 9ac00f70f99e55d476aa6626ed0de9305f27a38e (diff) | |
parent | bcfd43c790e9251a7717ab51636c158aac729c12 (diff) |
Merge "changed getter and setter for RouterForCreate"
-rw-r--r-- | quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java | 11 | ||||
-rw-r--r-- | quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java index c524ef5..6f5ddae 100644 --- a/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java +++ b/quantum-model/src/main/java/com/woorea/openstack/quantum/model/RouterForCreate.java @@ -32,7 +32,7 @@ public class RouterForCreate implements Serializable { private List<HostRoute> routes; @JsonProperty("admin_state_up") - private String admin_state_up; + private String adminStateUp; @JsonProperty("status") private String status; @@ -58,11 +58,12 @@ public class RouterForCreate implements Serializable { public void setRoutes(List<HostRoute> routes) { this.routes = routes; } - public String getAdmin_state_up() { - return admin_state_up; + public String getAdminStateUp() { + return adminStateUp; } - public void setAdmin_state_up(String admin_state_up) { - this.admin_state_up = admin_state_up; + + public void setAdminStateUp(String adminStateUp) { + this.adminStateUp = adminStateUp; } public String getStatus() { return status; diff --git a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java index b84e639..31a0373 100644 --- a/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java +++ b/quantum-model/src/test/java/com/woorea/openstack/quantum/model/RouterForCreateTest.java @@ -84,9 +84,9 @@ public class RouterForCreateTest { Assert.assertEquals(2, routes.size()); routerforcreate.setRoutes(routes); - String admin_state_up = routerforcreate.getAdmin_state_up(); + String admin_state_up = routerforcreate.getAdminStateUp(); Assert.assertNotNull(admin_state_up); - routerforcreate.setAdmin_state_up(admin_state_up); + routerforcreate.setAdminStateUp(admin_state_up); String name = routerforcreate.getName(); Assert.assertNotNull(name); |