@Test public void testHasVersionLabel2() throws Exception { VersionHistory delegate = mock(VersionHistory.class); VersionHistoryFacade<Session> facade = getFacade(delegate); final Version version = mock(Version.class); final String arg = "arg"; when(delegate.hasVersionLabel(version, arg)).thenReturn(true); assertTrue("is true", facade.hasVersionLabel(version, arg)); }
@Override public boolean hasVersionLabel(String label) throws RepositoryException { return delegate.hasVersionLabel(label); }
VersionHistoryFacade extends NodeFacade<VersionHistory, S> implements VersionHistory { @Override public boolean hasVersionLabel(String label) throws RepositoryException { return delegate.hasVersionLabel(label); } }
VersionHistoryFacade extends NodeFacade<VersionHistory, S> implements VersionHistory { @Override public boolean hasVersionLabel(String label) throws RepositoryException { return delegate.hasVersionLabel(label); } VersionHistoryFacade(final @NotNull VersionHistory delegate, final @NotNull SessionFacade<S> session); }
VersionHistoryFacade extends NodeFacade<VersionHistory, S> implements VersionHistory { @Override public boolean hasVersionLabel(String label) throws RepositoryException { return delegate.hasVersionLabel(label); } VersionHistoryFacade(final @NotNull VersionHistory delegate, final @NotNull SessionFacade<S> session); @SuppressWarnings("deprecation") @Override String getVersionableUUID(); @Override String getVersionableIdentifier(); @Override boolean hasVersionLabel(String label); @Override boolean hasVersionLabel(Version version, String label); @Override String[] getVersionLabels(); @Override String[] getVersionLabels(Version version); @Override Version getRootVersion(); @Override VersionIterator getAllLinearVersions(); @Override VersionIterator getAllVersions(); @Override NodeIterator getAllLinearFrozenNodes(); @Override NodeIterator getAllFrozenNodes(); @Override Version getVersion(String versionName); @Override Version getVersionByLabel(String label); @Override void addVersionLabel(String versionName, String label, boolean moveLabel); @Override void removeVersionLabel(String label); @Override void removeVersion(String versionName); }
VersionHistoryFacade extends NodeFacade<VersionHistory, S> implements VersionHistory { @Override public boolean hasVersionLabel(String label) throws RepositoryException { return delegate.hasVersionLabel(label); } VersionHistoryFacade(final @NotNull VersionHistory delegate, final @NotNull SessionFacade<S> session); @SuppressWarnings("deprecation") @Override String getVersionableUUID(); @Override String getVersionableIdentifier(); @Override boolean hasVersionLabel(String label); @Override boolean hasVersionLabel(Version version, String label); @Override String[] getVersionLabels(); @Override String[] getVersionLabels(Version version); @Override Version getRootVersion(); @Override VersionIterator getAllLinearVersions(); @Override VersionIterator getAllVersions(); @Override NodeIterator getAllLinearFrozenNodes(); @Override NodeIterator getAllFrozenNodes(); @Override Version getVersion(String versionName); @Override Version getVersionByLabel(String label); @Override void addVersionLabel(String versionName, String label, boolean moveLabel); @Override void removeVersionLabel(String label); @Override void removeVersion(String versionName);  }