package com.northernwall.hadrian.stubs;

import com.northernwall.hadrian.Const;
import com.northernwall.hadrian.parameters.ParameterChangeListener;
import com.northernwall.hadrian.parameters.Parameters;

public class StubParameters implements Parameters {

    @Override
    public String getString(String key, String value) {
        if (key.equalsIgnoreCase(Const.MESSAGE_PROCESSORS)) {
            return StubMessageProcessor.class.getCanonicalName();
        } else if (key.equalsIgnoreCase("messageType.TEST")) {
            return "{\"name\":\"TEST\", \"emailBody\":\"Hi {A}.\", \"slackBody\":\"This is {A} test, by Richard.\", \"slackIcon\":\":ghost:\"}";
        }
        return value;
    }

    @Override
    public int getInt(String key, int value) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public boolean getBoolean(String key, boolean value) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void registerChangeListener(ParameterChangeListener listener) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}

@@ -768,583 +768,219 @@
     
-throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.%0A    %7D%0A%0A    @Override%0A    public boolean getBoolean(String key, boolean value) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.%0A    %7D%0A%0A    @Override%0A    public void registerChangeListener(ParameterChangeListener listener) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.
+return value;%0A    %7D%0A%0A    @Override%0A    public boolean getBoolean(String key, boolean value) %7B%0A        return value;%0A    %7D%0A%0A    @Override%0A    public void registerChangeListener(ParameterChangeListener listener) %7B
 %0A   

Fix test