@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); rootNode.accept(mock); verify(mock).visit(rootNode); verifyNoMoreInteractions(mock); }
@Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); }
RootNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } }
RootNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } RootNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); }
RootNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } RootNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); List<VariantTypeNode> getSubstitutions(); @Override String toString(); }
RootNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } RootNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); List<VariantTypeNode> getSubstitutions(); @Override String toString();  }