01: package net.firstpartners.nounit.ui.common;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import net.firstpartners.nounit.utility.NoUnitException;
07:
08: /**
09: * Title: NoUnit - Identify Classes that are not being unit Tested
10: *
11: * Copyright (C) 2001 Paul Browne , FirstPartners.net
12: *
13: *
14: * This program is free software; you can redistribute it and/or
15: * modify it under the terms of the GNU General Public License
16: * as published by the Free Software Foundation; either version 2
17: * of the License, or (at your option) any later version.
18: *
19: * This program is distributed in the hope that it will be useful,
20: * but WITHOUT ANY WARRANTY; without even the implied warranty of
21: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22: * GNU General Public License for more details.
23: *
24: * You should have received a copy of the GNU General Public License
25: * along with this program; if not, write to the Free Software
26: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27: *
28: * @author Andrew Glover
29: * @since Jul 4, 2003
30: *
31: * Class only checks for valid directories for input and output.
32: */
33: public class LightWeightValueChecker extends AbstractValueChecker {
34:
35: /* (non-Javadoc)
36: * @see net.firstpartners.nounit.ui.common.AbstractValueChecker#checkValues(net.firstpartners.nounit.ui.common.AbstractPackage)
37: */
38: public boolean checkValues(AbstractPackage inValues)
39: throws NoUnitException {
40:
41: //Make sure that the Directories Actually Exist
42: Map checkDirs = new HashMap();
43: checkDirs.put(CommandPackage.START_DIR,
44: CommandPackage.START_DIR);
45: checkDirs.put(CommandPackage.OUTPUT_DIR,
46: CommandPackage.OUTPUT_DIR);
47:
48: this .checkForDirsExist(inValues, checkDirs);
49:
50: return true;
51:
52: }
53:
54: }
|