Skip to content

Commit 0751b89

Browse files
committed
Fix USING SPEC VALUES slide
Added a comment to `where` clause and fixed unroll text
1 parent 5cc8813 commit 0751b89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ <h6>JUnit Example</h6>
269269

270270
// When selecting crew on a $200k budget
271271
List&lt;CrewMember&gt; crew = crewRecruiterService.selectForBudget(200000L, POOL);
272-
272+
273273
// Then Kirk and Spock are the only 2 members selected, and returned in that order.
274274
Assert.assertEquals(new ArrayList<>(asList(KIRK, SPOCK)), crew);
275275

@@ -777,12 +777,12 @@ <h6>Using Spec values</h6>
777777
@Shared CrewManager crewMgr = new CrewManagerTestingUtil()
778778
static final ENTERPRISE = "USS Enterprise - NCC-1701"
779779

780-
@Unroll("A budget of #salaryCap pays for #expectedCrew")
780+
@Unroll("#crewMember should be assigned to the #expectedShip")
781781
void "Using Shared and statics"() {
782782
expect:
783783
// ...
784784

785-
where:
785+
where: "props defined outside test must be static"
786786
crewMember || expectedShip
787787
crewMgr.get('Spock') || ENTERPRISE
788788
crewMgr.get('Kirk') || ENTERPRISE

0 commit comments

Comments
 (0)