Last active
May 12, 2017 02:32
-
-
Save rastadrian/5851976c4802d4d84463c7c8de4fae2b to your computer and use it in GitHub Desktop.
Permuterator Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class PermuteratorTest { | |
| private Permuterator permuterator; | |
| private Permuterator.Validator validator; | |
| @Before | |
| public void setUp() throws Exception { | |
| permuterator = new Permuterator(); | |
| validator = mock(Permuterator.Validator.class); | |
| } | |
| @Test | |
| public void permute() throws Exception { | |
| permuterator.permute(Arrays.asList("A", "B", "C"), 4, validator); | |
| verify(validator, times(81)).validatePermutation(any()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment