#784 Make DataSource#purgeRecords case-insensitive

This commit is contained in:
ljacqu
2016-07-18 21:29:05 +02:00
parent cf1032d936
commit 57f90fe410
4 changed files with 16 additions and 30 deletions
@@ -369,4 +369,17 @@ public abstract class AbstractDataSourceIntegrationTest {
assertThat(dataSource.getLoggedPlayers(), empty());
}
@Test
public void shouldPerformPurgeOperation() {
// given
List<String> names = Arrays.asList("Bobby", "USER", "DoesnotExist");
DataSource dataSource = getDataSource();
// when
dataSource.purgeRecords(names);
// then
assertThat(dataSource.getAllAuths(), empty());
}
}