@@ -0,0 +1,1253 @@
+%0Apackage org.osgi.test.cases.zigbee.tbc.util;%0A%0Aimport java.util.Map;%0Aimport org.osgi.service.zigbee.ZigBeeHandler;%0A%0A/**%0A * Mocked impl of ZigBeeHandler.%0A */%0Apublic class ZigBeeHandlerImpl implements ZigBeeHandler %7B%0A%0A%09private Map%09response;%0A%0A%09/**%0A%09 * Constructor.%0A%09 */%0A%09public ZigBeeHandlerImpl() %7B%0A%0A%09%7D%0A%0A%09public void onSuccess(Map response) %7B%0A%09%09// System.out.println(%22ZigBeeHandlerImpl.onSuccess(%22 + response + %22)%22);%0A%09%09this.isSuccess = true;%0A%09%09this.response = response;%0A%09%7D%0A%0A%09public void onFailure(Map response) %7B%0A%09%09// System.out.println(%22ZigBeeHandlerImpl.onFailure(%22 + response + %22)%22);%0A%09%09this.isSuccess = false;%0A%09%09this.response = response;%0A%09%7D%0A%0A%09// Code below is for the testcases only.%0A%09/**%0A%09 * FOR TESTCASES ONLY!%0A%09 */%0A%09private Boolean%09isSuccess;%0A%0A%09/**%0A%09 * FOR TESTCASES ONLY!%0A%09 * %0A%09 * @return null if the handler hasn't receive a response yet, or true if%0A%09 *         onSuccess method has been called, or false if the onFailure%0A%09 *         method has been called.%0A%09 */%0A%09public Boolean isSuccess() %7B%0A%09%09return isSuccess;%0A%09%7D%0A%0A%09/**%0A%09 * FOR TESTCASES ONLY!%0A%09 * %0A%09 * @return ZigBeeHandlerImpl.reponse. Can be null, if the handler hasn't%0A%09 *         receive a response yet, or if the response is null.%0A%09 */%0A%09public Map getResponse() %7B%0A%09%09return response;%0A%09%7D%0A%0A%7D%0A

Add ZigBeeHandler(Mocked)Impl.