org.aludratest.service.cmdline
Interface CommandLineVerification

All Superinterfaces:
Action, Verification
All Known Implementing Classes:
CommandLineActionImpl

public interface CommandLineVerification
extends Verification

Verification interface for the CommandLineService.

Author:
Volker Bergmann

Method Summary
 void assertEmptyErrOut(String processType, String processName, int processId)
          Asserts that the specified process has no more error output.
 void assertEmptyStdOut(String processType, String processName, int processId)
          Asserts that the specified process has no more standard output.
 void assertExitCodeEquals(String processType, String processName, int processId, int expectedValue)
          Asserts that the referenced process' exit value equals the expected value.
 void assertNextLineOfErrOutMatches(String processType, String processName, int processId, org.databene.commons.Validator<String> validator)
          Asserts that the next line of the specified process' error output is accepted by the Validator.
 void assertNextLineOfStdOutMatches(String processType, String processName, int processId, org.databene.commons.Validator<String> validator)
          Asserts that the next line of the specified process' standard output is accepted by the Validator.
 
Methods inherited from interface org.aludratest.service.Action
createAttachments, createDebugAttachments, setSystemConnector
 

Method Detail

assertNextLineOfStdOutMatches

void assertNextLineOfStdOutMatches(String processType,
                                   String processName,
                                   int processId,
                                   org.databene.commons.Validator<String> validator)
Asserts that the next line of the specified process' standard output is accepted by the Validator.

Parameters:
processType - the process type
processName - the process name
processId - the internal id of the process
validator -

assertEmptyStdOut

void assertEmptyStdOut(String processType,
                       String processName,
                       int processId)
Asserts that the specified process has no more standard output.

Parameters:
processType - the process type
processName - the process name
processId - the internal id of the process

assertNextLineOfErrOutMatches

void assertNextLineOfErrOutMatches(String processType,
                                   String processName,
                                   int processId,
                                   org.databene.commons.Validator<String> validator)
Asserts that the next line of the specified process' error output is accepted by the Validator.

Parameters:
processType - the process type
processName - the process name
processId - the internal id of the process
validator -

assertEmptyErrOut

void assertEmptyErrOut(String processType,
                       String processName,
                       int processId)
Asserts that the specified process has no more error output.

Parameters:
processType - the process type
processName - the process name
processId - the internal id of the process

assertExitCodeEquals

void assertExitCodeEquals(String processType,
                          String processName,
                          int processId,
                          int expectedValue)
Asserts that the referenced process' exit value equals the expected value.

Parameters:
processType - the process type
processName - the process name
processId - the internal id of the process
expectedValue -


Copyright © 2015 aludratest.org. All rights reserved.