assertEquals("remaining-override", remaining.get(0).getName());
}
@Test
public void testRemoveByContentLabel() {
consumerContentOverrideCurator.create(new ConsumerContentOverride(consumer,
"test-repo", "gpgcheck", "1"));
consumerContentOverrideCurator.create(new ConsumerContentOverride(consumer,
"test-repo", "foo", "foo-v"));
consumerContentOverrideCurator.create(new ConsumerContentOverride(consumer,
"should-remain", "remaining", "true"));
consumerContentOverrideCurator.removeByContentLabel(consumer, "test-repo");
List<ConsumerContentOverride> remaining =
consumerContentOverrideCurator.getList(consumer);
assertEquals(1, remaining.size());