/*
Copyright 2004-2007 Paul R. Holser, Jr. All rights reserved.
Licensed under the Academic Free License version 3.0
*/
package joptsimple;
import junitx.extensions.EqualsHashCodeTestCase;
/**
* @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
* @version $Id: OptionSetEqualsHashCodeTest.java,v 1.9 2007/04/10 20:06:27 pholser Exp $
*/
public class OptionSetEqualsHashCodeTest extends EqualsHashCodeTestCase {
public OptionSetEqualsHashCodeTest( String name ) {
super( name );
}
protected Object createInstance() {
OptionSet options = new OptionSet();
options.addWithArgument( "anOption", "anArg" );
options.addNonOptionArgument( "aNonOptionArgument" );
return options;
}
protected Object createNotEqualInstance() {
OptionSet options = new OptionSet();
options.addWithArgument( "anOption", "aDifferentArg" );
options.addNonOptionArgument( "aNonOptionArgument" );
return options;
}
}
|