Sha256: a069d5e028d3d296e0526760d7d13d8ca73644341e292ff59ea7c11e94f639f2
Contents?: true
Size: 827 Bytes
Versions: 8
Compression:
Stored size: 827 Bytes
Contents
!1 The Fixture Code for Action Fixtures Here is our example test table from the ActionFixture page: |Action Fixture.| |start|!-fitnesse.fixtures.CountFixture-!| |check|counter|0| |press|count| |check|counter|1| |press|count| |check|counter|2| |enter|counter|5| |press|count| |check|counter|6| And here is the code for the !-CountFixture-!:{{{public class CountFixture extends Fixture { private int counter = 0; public void count() { counter++; } public int counter() { return counter; } } }}} As you can see, the names of the buttons (''check'', ''press'', and ''enter'') and registers (''count'' and ''counter'') correspond directly to methods in the 'started' fixture. And the meter values (the numbers in the rightmost column) are returned by the ''counter()'' method. It's really as simple as that.
Version data entries
8 entries across 8 versions & 1 rubygems