< prev index next >
test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java
Print this page
@@ -53,19 +53,31 @@
* Range is defined for option inside VM
*/
protected boolean withRange;
/**
+ * Test valid min range value and additional small values
+ */
+ protected boolean testMinRange;
+
+ /**
+ * Test valid max range value and additional big values
+ */
+ protected boolean testMaxRange;
+
+ /**
* Prepend string which added before testing option to the command line
*/
private final List<String> prepend;
private final StringBuilder prependString;
protected JVMOption() {
this.prepend = new ArrayList<>();
prependString = new StringBuilder();
withRange = false;
+ testMinRange = true;
+ testMaxRange = true;
}
/**
* Create JVM Option with given type and name.
*
@@ -134,10 +146,24 @@
final void optionWithRange() {
withRange = true;
}
/**
+ * Not test min range value for this option
+ */
+ public final void notTestMinRange() {
+ testMinRange = false;
+ }
+
+ /**
+ * Not test max range value for this option
+ */
+ public final void notTestMaxRange() {
+ testMaxRange = false;
+ }
+
+ /**
* Set new minimum option value
*
* @param min new minimum value
*/
abstract void setMin(String min);
< prev index next >