@@ -0,0 +1,2153 @@
+package net.openhft.chronicle.queue;%0A%0Aimport net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder;%0Aimport net.openhft.chronicle.wire.MethodReader;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0A/**%0A * Created on 19.10.2016.%0A */%0Apublic class ChronicleQueueMethodsWithoutParameters extends ChronicleQueueTestBase %7B%0A%0A    public interface SomeListener %7B%0A%0A        void methodWithoutParams();%0A%0A        void methodWithOneParam(int i);%0A    %7D%0A%0A    public static class SomeManager implements SomeListener %7B%0A%0A        public boolean methodWithoutParamsInvoked = false;%0A        public boolean methodWithOneParamInvoked = false;%0A%0A        @Override%0A        public void methodWithoutParams() %7B%0A            methodWithoutParamsInvoked = true;%0A        %7D%0A%0A        @Override%0A        public void methodWithOneParam(int i) %7B%0A            methodWithOneParamInvoked = true;%0A        %7D%0A    %7D%0A%0A    protected static final Logger LOG = LoggerFactory.getLogger(ChronicleQueueMethodsWithoutParameters.class);%0A%0A    @Test%0A    public void test() throws IOException, InterruptedException %7B%0A        File file = getTmpDir();%0A%0A        try (ChronicleQueue queue = SingleChronicleQueueBuilder.binary(file).build()) %7B%0A            final ExcerptAppender appender = queue.acquireAppender();%0A            final ExcerptTailer tailer = queue.createTailer();%0A%0A            SomeListener someListener = appender.methodWriter(SomeListener.class);%0A%0A            SomeManager someManager = new SomeManager();%0A            MethodReader reader = tailer.methodReader(someManager);%0A%0A            LOG.debug(%22Writing to queue%22);%0A            someListener.methodWithOneParam(1);%0A            someListener.methodWithoutParams();%0A%0A            LOG.debug(%22Reading from queue%22);%0A            boolean run = true;%0A            while (run) %7B%0A                run = reader.readOne();%0A            %7D%0A%0A            Assert.assertEquals(true, someManager.methodWithOneParamInvoked);%0A            Assert.assertEquals(true, someManager.methodWithoutParamsInvoked);%0A%0A            LOG.warn(queue.dump());%0A        %7D%0A    %7D%0A%7D%0A

Test for issue with invokation of method without parameters