[−][src]Struct stipulate::conf::JavaConfig
This struct represents a configuration for running a java program.
See JavaConfig::from_toml
for docs on how to create one.
Implementations
impl JavaConfig
[src]
pub fn from_toml(conf: &Value) -> Result<JavaConfig, &'static str>
[src]
Required fields in the toml:
- "name": A name for this test
- "tests_dir": The directory to contain input and output data
- "main_class": The class containing a public static void main(String[] args) method to be run.
Optional fields in the toml:
- "timeout": Should be the number of seconds to allow before
timing out,
true
(use default timeout value), orfalse
(allow tested code to run however long it takes - not recommended). Default: 5 seconds - "args": Should be an array of arguments to pass to the java program being tested. It will be passed directly to the String[] args in the java program. Default: empty array.
Trait Implementations
impl Config for JavaConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for JavaConfig
impl !Send for JavaConfig
impl !Sync for JavaConfig
impl Unpin for JavaConfig
impl UnwindSafe for JavaConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,