[][src]Struct stipulate::conf::JavaConfig

pub struct JavaConfig { /* fields omitted */ }

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), or false (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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.