@Test public void testVisitor() throws IOException { BxmlNodeVisitor mock = mock(BxmlNodeVisitor.class); nameStringNode.accept(mock); verify(mock).visit(nameStringNode); verifyNoMoreInteractions(mock); }
@Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); }
NameStringNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } }
NameStringNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } NameStringNode(BinaryReader binaryReader, ChunkHeader chunkHeader); }
NameStringNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } NameStringNode(BinaryReader binaryReader, ChunkHeader chunkHeader); UnsignedInteger getNextOffset(); int getHash(); String getString(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor); }
NameStringNode extends BxmlNode { @Override public void accept(BxmlNodeVisitor bxmlNodeVisitor) throws IOException { bxmlNodeVisitor.visit(this); } NameStringNode(BinaryReader binaryReader, ChunkHeader chunkHeader); UnsignedInteger getNextOffset(); int getHash(); String getString(); @Override void accept(BxmlNodeVisitor bxmlNodeVisitor);  }