@Test public void testGetNodeType() throws Exception { NodeTypeManager delegate = mock(NodeTypeManager.class); NodeTypeManagerFacade facade = getFacade(delegate); final String type = "type"; final NodeType value = mock(NodeType.class); when(delegate.getNodeType(type)).thenReturn(value); assertSame("same value", value, facade.getNodeType(type)); }
@Override public NodeType getNodeType(String nodeTypeName) throws RepositoryException { return delegate.getNodeType(nodeTypeName); }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeType getNodeType(String nodeTypeName) throws RepositoryException { return delegate.getNodeType(nodeTypeName); } }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeType getNodeType(String nodeTypeName) throws RepositoryException { return delegate.getNodeType(nodeTypeName); } NodeTypeManagerFacade(final @NotNull NodeTypeManager delegate); }
NodeTypeManagerFacade implements NodeTypeManager { @Override public NodeType getNodeType(String nodeTypeName) throws RepositoryException { return delegate.getNodeType(nodeTypeName); } 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 NodeType getNodeType(String nodeTypeName) throws RepositoryException { return delegate.getNodeType(nodeTypeName); } 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);  }