expected.append(String.valueOf(cleanInterval));
expected.append(" ms and max objects of ");
expected.append(String.valueOf(maxInterval));
- expected.append("\n");
+ expected.append(System.lineSeparator());
assertThat(output, is(expected.toString()));
outStream.reset();
expected.append(String.valueOf(cleanInterval));
expected.append(" ms and max objects of ");
expected.append(String.valueOf(maxInterval));
- expected.append("\n");
+ expected.append(System.lineSeparator());
assertThat(output, is(expected.toString()));
AbsUserCacheStub<Permission> aucs3 = new AbsUserCacheStub<Permission>(access, 0, 0, Integer.MAX_VALUE);
assertThat(dumpInfo.size(), is(2));
// Utility lists
- List<String> names = new ArrayList<String>();
+ List<String> names = new ArrayList<>();
names.add(name1);
names.add(name2);
- List<String> permissions = new ArrayList<String>();
+ List<String> permissions = new ArrayList<>();
permissions.add("NewKey1");
permissions.add("NewKey2");