Java tutorial
/* * Defect Prediction Plugin * Copyright (C) 2013 Revitas, Inc. * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ package com.revitasinc.sonar.dp.batch.mock; import org.apache.commons.configuration.Configuration; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Iterator; import java.util.List; import java.util.Properties; public class MockConfiguration implements Configuration { public void addProperty(String arg0, Object arg1) { // TODO Auto-generated method stub } public void clear() { // TODO Auto-generated method stub } public void clearProperty(String arg0) { // TODO Auto-generated method stub } public boolean containsKey(String arg0) { // TODO Auto-generated method stub return false; } public BigDecimal getBigDecimal(String arg0) { // TODO Auto-generated method stub return null; } public BigDecimal getBigDecimal(String arg0, BigDecimal arg1) { // TODO Auto-generated method stub return null; } public BigInteger getBigInteger(String arg0) { // TODO Auto-generated method stub return null; } public BigInteger getBigInteger(String arg0, BigInteger arg1) { // TODO Auto-generated method stub return null; } public boolean getBoolean(String arg0) { // TODO Auto-generated method stub return false; } public boolean getBoolean(String arg0, boolean arg1) { // TODO Auto-generated method stub return false; } public Boolean getBoolean(String arg0, Boolean arg1) { // TODO Auto-generated method stub return null; } public byte getByte(String arg0) { // TODO Auto-generated method stub return 0; } public byte getByte(String arg0, byte arg1) { // TODO Auto-generated method stub return 0; } public Byte getByte(String arg0, Byte arg1) { // TODO Auto-generated method stub return null; } public double getDouble(String arg0) { // TODO Auto-generated method stub return 0; } public double getDouble(String arg0, double arg1) { // TODO Auto-generated method stub return 0; } public Double getDouble(String arg0, Double arg1) { // TODO Auto-generated method stub return null; } public float getFloat(String arg0) { // TODO Auto-generated method stub return 0; } public float getFloat(String arg0, float arg1) { // TODO Auto-generated method stub return 0; } public Float getFloat(String arg0, Float arg1) { // TODO Auto-generated method stub return null; } public int getInt(String arg0) { // TODO Auto-generated method stub return 0; } public int getInt(String arg0, int arg1) { // TODO Auto-generated method stub return 0; } public Integer getInteger(String arg0, Integer arg1) { // TODO Auto-generated method stub return null; } public Iterator getKeys() { // TODO Auto-generated method stub return null; } public Iterator getKeys(String arg0) { // TODO Auto-generated method stub return null; } public List getList(String arg0) { // TODO Auto-generated method stub return null; } public List getList(String arg0, List arg1) { // TODO Auto-generated method stub return null; } public long getLong(String arg0) { // TODO Auto-generated method stub return 0; } public long getLong(String arg0, long arg1) { // TODO Auto-generated method stub return 0; } public Long getLong(String arg0, Long arg1) { // TODO Auto-generated method stub return null; } public Properties getProperties(String arg0) { // TODO Auto-generated method stub return null; } public Object getProperty(String arg0) { // TODO Auto-generated method stub return null; } public short getShort(String arg0) { // TODO Auto-generated method stub return 0; } public short getShort(String arg0, short arg1) { // TODO Auto-generated method stub return 0; } public Short getShort(String arg0, Short arg1) { // TODO Auto-generated method stub return null; } public String getString(String arg0) { // TODO Auto-generated method stub return null; } public String getString(String arg0, String arg1) { // TODO Auto-generated method stub return null; } public String[] getStringArray(String arg0) { // TODO Auto-generated method stub return new String[] {}; } public boolean isEmpty() { // TODO Auto-generated method stub return false; } public void setProperty(String arg0, Object arg1) { // TODO Auto-generated method stub } public Configuration subset(String arg0) { // TODO Auto-generated method stub return null; } }