/*
 * Copyright (c) 2010-2018. Axon Framework
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.axonframework.kafka.eventhandling.producer;

import org.axonframework.common.AxonConfigurationException;
import org.junit.*;

/**
 * Tests for {@link KafkaPublisher.Builder}.
 *
 * @author Nakul Mishra
 */
public class KafkaPublisherBuilderTests {

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_MessageSource() {
        KafkaPublisher.builder().messageSource(null);
    }

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_ProducerFactory() {
        KafkaPublisher.builder().producerFactory(null).build();
    }

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_MessageConverter() {
        KafkaPublisher.builder().messageConverter(null).build();
    }

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_MessageMonitor() {
        KafkaPublisher.builder().messageMonitor(null).build();
    }

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_KafkaTopic() {
        KafkaPublisher.builder().topic(null).build();
    }

    @Test(expected = AxonConfigurationException.class)
    public void testConfiguringInvalid_AckTimeout() {
        KafkaPublisher.builder().publisherAckTimeout((long) -12);
    }
}
@@ -952,25 +952,24 @@
 uringInvalid
-_
 MessageSourc
@@ -970,24 +970,24 @@
 eSource() %7B%0A
+
         Kafk
@@ -1128,17 +1128,16 @@
 gInvalid
-_
 Producer
@@ -1308,25 +1308,24 @@
 uringInvalid
-_
 MessageConve
@@ -1498,17 +1498,16 @@
 gInvalid
-_
 MessageM
@@ -1680,17 +1680,16 @@
 gInvalid
-_
 KafkaTop
@@ -1803,32 +1803,32 @@
 xception.class)%0A
+
     public void 
@@ -1853,9 +1853,8 @@
 alid
-_
 AckT

Remove underscores from test classes