@Test public void testCreateNodeDefinitionTemplate() throws Exception { NodeTypeManager delegate = mock(NodeTypeManager.class); NodeTypeManagerFacade facade = getFacade(delegate); final NodeDefinitionTemplate value = mock(NodeDefinitionTemplate.class); when(delegate.createNodeDefinitionTemplate()).thenReturn(value); assertSame("same value", value, facade.createNodeDefinitionTemplate()); }
@Override public NodeDefinitionTemplate createNodeDefinitionTemplate() throws RepositoryException { return delegate.createNodeDefinitionTemplate(); }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeDefinitionTemplate createNodeDefinitionTemplate() throws RepositoryException { return delegate.createNodeDefinitionTemplate(); } }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeDefinitionTemplate createNodeDefinitionTemplate() throws RepositoryException { return delegate.createNodeDefinitionTemplate(); } NodeTypeManagerFacade(final @NotNull NodeTypeManager delegate); }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeDefinitionTemplate createNodeDefinitionTemplate() throws RepositoryException { return delegate.createNodeDefinitionTemplate(); } NodeTypeManagerFacade(final @NotNull NodeTypeManager delegate); @Override NodeType getNodeType(String nodeTypeName); @Override boolean hasNodeType(String name); @Override NodeTypeIterator getAllNodeTypes(); @Override NodeTypeIterator getPrimaryNodeTypes(); @Override NodeTypeIterator getMixinNodeTypes(); @Override NodeTypeTemplate createNodeTypeTemplate(); @Override NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd); @Override NodeDefinitionTemplate createNodeDefinitionTemplate(); @Override PropertyDefinitionTemplate createPropertyDefinitionTemplate(); @Override NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate); @Override NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds, boolean allowUpdate); @Override void unregisterNodeType(String name); @Override void unregisterNodeTypes(String[] names); }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeDefinitionTemplate createNodeDefinitionTemplate() throws RepositoryException { return delegate.createNodeDefinitionTemplate(); } NodeTypeManagerFacade(final @NotNull NodeTypeManager delegate); @Override NodeType getNodeType(String nodeTypeName); @Override boolean hasNodeType(String name); @Override NodeTypeIterator getAllNodeTypes(); @Override NodeTypeIterator getPrimaryNodeTypes(); @Override NodeTypeIterator getMixinNodeTypes(); @Override NodeTypeTemplate createNodeTypeTemplate(); @Override NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd); @Override NodeDefinitionTemplate createNodeDefinitionTemplate(); @Override PropertyDefinitionTemplate createPropertyDefinitionTemplate(); @Override NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate); @Override NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds, boolean allowUpdate); @Override void unregisterNodeType(String name); @Override void unregisterNodeTypes(String[] names);  }