commit | 05b169deabba36c896fc6526e742d88d667c6868 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Thu Aug 13 14:33:33 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Fri Aug 14 16:39:15 2015 +0000 |
tree | fbcdf21fa70832025dc68e7c51149c442b3da8db | |
parent | 5d915f492bad4d61115ac1b137249a9f7ba37382 [diff] [blame] |
Improve coverage for Intents REST API test Also, added @Provider annotation to all exception mappers so the Jersey unit test framework will apply them during testing. Change-Id: Ifd9237de2e159cd97b64dcb9bde4a66f14bd0dfc
diff --git a/web/api/src/main/java/org/onosproject/rest/exceptions/EntityNotFoundMapper.java b/web/api/src/main/java/org/onosproject/rest/exceptions/EntityNotFoundMapper.java index 63e24b9..9e42a56 100644 --- a/web/api/src/main/java/org/onosproject/rest/exceptions/EntityNotFoundMapper.java +++ b/web/api/src/main/java/org/onosproject/rest/exceptions/EntityNotFoundMapper.java
@@ -18,10 +18,12 @@ import org.onlab.util.ItemNotFoundException; import javax.ws.rs.core.Response; +import javax.ws.rs.ext.Provider; /** * Mapper for service not found exceptions to the NOT_FOUND response code. */ +@Provider public class EntityNotFoundMapper extends AbstractMapper<ItemNotFoundException> { @Override protected Response.Status responseStatus() {