@Test public void shouldReturnFalesWhenAskingForUnspecifiedCapability() { RepositoryCapabilities capabilities = new RepositoryCapabilities("SUPERPOWER"); boolean capable = capabilities.capableOf("STRANGE_SUPERPOWER"); assertThat(capable).isFalse(); }
public boolean capableOf(String capability) { return capabilities.contains(capability); }
RepositoryCapabilities { public boolean capableOf(String capability) { return capabilities.contains(capability); } }
RepositoryCapabilities { public boolean capableOf(String capability) { return capabilities.contains(capability); } RepositoryCapabilities(Object... capabilities); }
RepositoryCapabilities { public boolean capableOf(String capability) { return capabilities.contains(capability); } RepositoryCapabilities(Object... capabilities); boolean capableOf(String capability); }
RepositoryCapabilities { public boolean capableOf(String capability) { return capabilities.contains(capability); } RepositoryCapabilities(Object... capabilities); boolean capableOf(String capability);  }