Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Kaufmann committed Apr 6, 2018
1 parent 0b09152 commit 0b5d790
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void testGeneratorVoidReturn()
@Test
public void testGeneratorObjectReturn()
{
// test generator returning object is not accidently castet to correct type
Result result = JUnitCore.runClasses(GeneratorObjectReturn.class);

Assert.assertFalse(result.wasSuccessful());
Expand All @@ -78,6 +79,7 @@ public void testGeneratorObjectReturn()
@Test
public void testGeneratorIterableReturnOne()
{
// one test data element, one test iteration
Result result = JUnitCore.runClasses(GeneratorIterableReturnOne.class);

Assert.assertTrue(result.wasSuccessful());
Expand All @@ -89,6 +91,7 @@ public void testGeneratorIterableReturnOne()
@Test
public void testGeneratorToFewElements()
{
// one test iteration with two parameter fields, but just one data set
Result result = JUnitCore.runClasses(GeneratorToFewElements.class);

Assert.assertFalse(result.wasSuccessful());
Expand All @@ -104,6 +107,7 @@ public void testGeneratorToFewElements()
@Test
public void testGeneratorToMuchElements()
{
// one test iteration with one data field, but two data sets
Result result = JUnitCore.runClasses(GeneratorToMuchElements.class);

Assert.assertFalse(result.wasSuccessful());
Expand Down

0 comments on commit 0b5d790

Please sign in to comment.