-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move DataProviders expected ast to snapshots
- Loading branch information
Showing
3 changed files
with
71 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ider_with_asserting_closure_produces_error_rethrower_variable_in_data_provider_method.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package aPackage | ||
import spock.lang.* | ||
|
||
class ASpec extends Specification { | ||
/*--------- tag::snapshot[] ---------*/ | ||
public void $spock_feature_0_0(java.lang.Object dataPipe, java.lang.Object dataVariable) { | ||
this.getSpecificationContext().getMockController().leaveScope() | ||
} | ||
|
||
public java.lang.Object $spock_feature_0_0prov0() { | ||
org.spockframework.runtime.ErrorCollector $spock_errorCollector = org.spockframework.runtime.ErrorRethrower.INSTANCE | ||
return [{ -> | ||
org.spockframework.runtime.ValueRecorder $spock_valueRecorder1 = new org.spockframework.runtime.ValueRecorder() | ||
try { | ||
org.spockframework.runtime.SpockRuntime.verifyCondition($spock_errorCollector, $spock_valueRecorder1.reset(), 'true', 2, 29, null, $spock_valueRecorder1.record($spock_valueRecorder1.startRecordingValue(0), true)) | ||
} | ||
catch (java.lang.Throwable $spock_condition_throwable) { | ||
org.spockframework.runtime.SpockRuntime.conditionFailedWithException($spock_errorCollector, $spock_valueRecorder1, 'true', 2, 29, null, $spock_condition_throwable)} | ||
finally { | ||
} | ||
}] | ||
} | ||
|
||
public java.lang.Object $spock_feature_0_0proc(java.lang.Object $spock_p0) { | ||
java.lang.Object dataPipe = (( $spock_p0 ) as java.lang.Object) | ||
java.lang.Object dataVariable = ((null) as java.lang.Object) | ||
return new java.lang.Object[]{ dataPipe , dataVariable } | ||
} | ||
/*--------- end::snapshot[] ---------*/ | ||
} |
30 changes: 30 additions & 0 deletions
30
...ble_with_asserting_closure_produces_error_rethrower_variable_in_data_processor_method.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package aPackage | ||
import spock.lang.* | ||
|
||
class ASpec extends Specification { | ||
/*--------- tag::snapshot[] ---------*/ | ||
public void $spock_feature_0_0(java.lang.Object dataPipe, java.lang.Object dataVariable) { | ||
this.getSpecificationContext().getMockController().leaveScope() | ||
} | ||
|
||
public java.lang.Object $spock_feature_0_0prov0() { | ||
return [null] | ||
} | ||
|
||
public java.lang.Object $spock_feature_0_0proc(java.lang.Object $spock_p0) { | ||
org.spockframework.runtime.ErrorCollector $spock_errorCollector = org.spockframework.runtime.ErrorRethrower.INSTANCE | ||
java.lang.Object dataPipe = (( $spock_p0 ) as java.lang.Object) | ||
java.lang.Object dataVariable = (({ -> | ||
org.spockframework.runtime.ValueRecorder $spock_valueRecorder1 = new org.spockframework.runtime.ValueRecorder() | ||
try { | ||
org.spockframework.runtime.SpockRuntime.verifyCondition($spock_errorCollector, $spock_valueRecorder1.reset(), 'true', 3, 31, null, $spock_valueRecorder1.record($spock_valueRecorder1.startRecordingValue(0), true)) | ||
} | ||
catch (java.lang.Throwable $spock_condition_throwable) { | ||
org.spockframework.runtime.SpockRuntime.conditionFailedWithException($spock_errorCollector, $spock_valueRecorder1, 'true', 3, 31, null, $spock_condition_throwable)} | ||
finally { | ||
} | ||
}) as java.lang.Object) | ||
return new java.lang.Object[]{ dataPipe , dataVariable } | ||
} | ||
/*--------- end::snapshot[] ---------*/ | ||
} |