@Test public void procShouldExposeJournal() { assertTrue( Proc.of(mock(Backend.class)) .hasChildNode("journal") ); }
public static NodeState of(Backend backend) { NodeBuilder builder = EmptyNodeState.EMPTY_NODE.builder(); builder.setChildNode("store", new StoreNode(backend)); builder.setChildNode("journal", new JournalNode(backend)); return builder.getNodeState(); }
Proc { public static NodeState of(Backend backend) { NodeBuilder builder = EmptyNodeState.EMPTY_NODE.builder(); builder.setChildNode("store", new StoreNode(backend)); builder.setChildNode("journal", new JournalNode(backend)); return builder.getNodeState(); } }
Proc { public static NodeState of(Backend backend) { NodeBuilder builder = EmptyNodeState.EMPTY_NODE.builder(); builder.setChildNode("store", new StoreNode(backend)); builder.setChildNode("journal", new JournalNode(backend)); return builder.getNodeState(); } private  Proc(); }
Proc { public static NodeState of(Backend backend) { NodeBuilder builder = EmptyNodeState.EMPTY_NODE.builder(); builder.setChildNode("store", new StoreNode(backend)); builder.setChildNode("journal", new JournalNode(backend)); return builder.getNodeState(); } private  Proc(); static NodeState of(Backend backend); }
Proc { public static NodeState of(Backend backend) { NodeBuilder builder = EmptyNodeState.EMPTY_NODE.builder(); builder.setChildNode("store", new StoreNode(backend)); builder.setChildNode("journal", new JournalNode(backend)); return builder.getNodeState(); } private  Proc(); static NodeState of(Backend backend);  }