01: /*
02: Copyright 2004-2007 Paul R. Holser, Jr. All rights reserved.
03: Licensed under the Academic Free License version 3.0
04: */
05:
06: package joptsimple;
07:
08: import junitx.extensions.EqualsHashCodeTestCase;
09:
10: /**
11: * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
12: * @version $Id: OptionSetEqualsHashCodeTest.java,v 1.9 2007/04/10 20:06:27 pholser Exp $
13: */
14: public class OptionSetEqualsHashCodeTest extends EqualsHashCodeTestCase {
15: public OptionSetEqualsHashCodeTest(String name) {
16: super (name);
17: }
18:
19: protected Object createInstance() {
20: OptionSet options = new OptionSet();
21:
22: options.addWithArgument("anOption", "anArg");
23: options.addNonOptionArgument("aNonOptionArgument");
24:
25: return options;
26: }
27:
28: protected Object createNotEqualInstance() {
29: OptionSet options = new OptionSet();
30:
31: options.addWithArgument("anOption", "aDifferentArg");
32: options.addNonOptionArgument("aNonOptionArgument");
33:
34: return options;
35: }
36: }
|