commit | 4a1e59f28e9b3c8ea6f0a7016590fcc68324830f | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Jan 26 15:27:13 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Jan 27 03:57:51 2016 +0000 |
tree | b3001a6fdc6cd89221162491fd9a843f49dde422 | |
parent | f0eb2174c458a0d1bb49568520053a429dd3ea3d [diff] [blame] |
Rename: use plural according to the returned type Change-Id: I7db9ae2fda2f7240d69ad7dbd028ccc0ea8a8fd8
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MockResourceService.java b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MockResourceService.java index a41616b..7e3beca 100644 --- a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MockResourceService.java +++ b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MockResourceService.java
@@ -68,7 +68,7 @@ } @Override - public List<ResourceAllocation> getResourceAllocation(Resource resource) { + public List<ResourceAllocation> getResourceAllocations(Resource resource) { return Optional.ofNullable(assignment.get(resource)) .map(x -> ImmutableList.of(new ResourceAllocation(resource, x))) .orElse(ImmutableList.of());