| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ContextWrapper |
|
| 1.0;1 |
| 1 | package org.paneris.jammyjoes.mvp; | |
| 2 | ||
| 3 | import org.melati.template.ServletTemplateContext; | |
| 4 | ||
| 5 | public class ContextWrapper implements Context { | |
| 6 | ||
| 7 | ServletTemplateContext _wrapped; | |
| 8 | 0 | public ContextWrapper(ServletTemplateContext context) { |
| 9 | 0 | _wrapped = context; |
| 10 | 0 | } |
| 11 | ||
| 12 | public void put(String string, Object object) { | |
| 13 | 0 | _wrapped.put(string, object); |
| 14 | 0 | } |
| 15 | ||
| 16 | public Object get(Converter converter, String key) { | |
| 17 | 0 | return converter.convert(_wrapped.getForm(key)); |
| 18 | } | |
| 19 | ||
| 20 | } |