Package com.pulumi.test
Class TestResult
- java.lang.Object
 - 
- com.pulumi.test.TestResult
 
 
- 
public class TestResult extends java.lang.ObjectA test result information. 
- 
- 
Constructor Summary
Constructors Constructor Description TestResult(int exitCode, java.util.List<Resource> resources, java.util.List<java.lang.Exception> exceptions, java.util.List<java.lang.String> errors, java.util.Map<java.lang.String,Output<?>> outputs) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>errors()java.util.List<java.lang.Exception>exceptions()intexitCode()Output<java.lang.Object>output(java.lang.String name)Gets an output associated with the given name.<T> Output<T>output(java.lang.String name, java.lang.Class<T> type)Gets an output associated with the givennameand casts the value to the giventype.java.util.Map<java.lang.String,Output<?>>outputs()java.util.List<Resource>resources()TestResultthrowOnError()ThrowRunExceptionif we've encountered an exception or returnTestResultotherwise. 
 - 
 
- 
- 
Method Detail
- 
exitCode
public int exitCode()
 
- 
resources
public java.util.List<Resource> resources()
 
- 
exceptions
public java.util.List<java.lang.Exception> exceptions()
 
- 
errors
public java.util.List<java.lang.String> errors()
 
- 
outputs
public java.util.Map<java.lang.String,Output<?>> outputs()
 
- 
output
public Output<java.lang.Object> output(java.lang.String name)
Gets an output associated with the given name.- Parameters:
 name- the stack output name- Returns:
 - an output associated with the given 
name 
 
- 
output
public <T> Output<T> output(java.lang.String name, java.lang.Class<T> type)
Gets an output associated with the givennameand casts the value to the giventype.- Type Parameters:
 T- the stack output type- Parameters:
 name- the stack output nametype- the stack output Class to use for casting- Returns:
 - an output associated with the given 
name 
 
- 
throwOnError
public TestResult throwOnError()
ThrowRunExceptionif we've encountered an exception or returnTestResultotherwise.- Returns:
 - this 
TestResult 
 
 - 
 
 -