Skip to content

Commit

Permalink
Make 100% code coverage with only 3 lines added in the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
risik committed Jun 6, 2015
1 parent 50eada1 commit 5a50b25
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -19,6 +19,7 @@ public class HelloSayerTest {
enum HelloSayerType {
InPlace,
AtOnce,
Lazy,
}

@Theory
Expand Down Expand Up @@ -53,6 +54,8 @@ private HelloSayer getFactory(HelloSayerType type, String whom) throws Exception
return new HelloSayerInplace(whom);
case AtOnce:
return new HelloSayerAtOnce(whom);
case Lazy:
return new HelloSayerLazy(whom);
}
throw new Exception("Unknown HelloSayerType");
}
Expand Down

0 comments on commit 5a50b25

Please sign in to comment.