Repository navigation
Changes assertThat to assertEquals - #1591
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great, thanks @AndresAcuna! 😄 There's one whitespace missing and some unused imports that can be removed, apart from that it looks ready to merge! 🙂
| school.add("Aimee", 2); | ||
| List<String> expected = Arrays.asList("Aimee"); | ||
| assertThat(school.roster(), is(expected)); | ||
| assertEquals(expected,school.roster()); |
There was a problem hiding this comment.
There should be a space here between expected and school.roster() 🙂
| import static org.hamcrest.CoreMatchers.*; | ||
| import static org.junit.Assert.assertThat; | ||
| import static org.junit.Assert.assertTrue; | ||
| import static org.junit.Assert.assertEquals; |
There was a problem hiding this comment.
I think quite a few of these imports aren't needed any more? Feel free to remove them as part of this PR (ctrl + alt + O should remove unused imports using IntelliJ, see https://www.jetbrains.com/help/phpstorm/optimizing-imports.html), or I can open a new issue for it if you'd prefer 🙂
There was a problem hiding this comment.
I took care of it, I also removed some redundant initializations (of school) in every test since it's already done in @Before.
…initializations from tests
sjwarner-bp
left a comment
There was a problem hiding this comment.
This looks great! Thanks so much @AndresAcuna
Reviewer Resources:
Track Policies