Skip to content

Commit 4c66379

Browse files
committed
Remove tab in base success case example to make it quicker to read
1 parent 0badedc commit 4c66379

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,23 @@ import static com.andyln.Mof.ALL;
116116
117117
// ...
118118
119-
@Test
120-
public void success() throws Exception {
121-
// Given (Setup data)
122-
Food expected = SAMPLE_HOT_FOOD;
123-
124-
// Given (Setup processors)
125-
mof.when(ALL);
126-
127-
// When (Run the thing that you want to test)
128-
Food actual = microwave.heatFood(SAMPLE_COLD_FOOD, SAMPLE_SECONDS);
129-
130-
// Then (Asserting what you want to be true, is actually true)
131-
assertEquals(expected, actual);
132-
133-
// Verify (Asserting the processors are called in the way you want)
134-
mof.verify(ALL);
135-
}
119+
@Test
120+
public void success() throws Exception {
121+
// Given (Setup data)
122+
Food expected = SAMPLE_HOT_FOOD;
123+
124+
// Given (Setup processors)
125+
mof.when(ALL);
126+
127+
// When (Run the thing that you want to test)
128+
Food actual = microwave.heatFood(SAMPLE_COLD_FOOD, SAMPLE_SECONDS);
129+
130+
// Then (Asserting what you want to be true, is actually true)
131+
assertEquals(expected, actual);
132+
133+
// Verify (Asserting the processors are called in the way you want)
134+
mof.verify(ALL);
135+
}
136136
```
137137

138138
### Unit Testing - An Exception Case

0 commit comments

Comments
 (0)